Creazione di un child theme per Wordpress: Difference between revisions
Jump to navigation
Jump to search
m New page: Un child theme ha uno style.css proprio, mentre eredita tutti gli altri files dal tema padre. Se si modificano questi files, si modificano i files del tema padre. *[http://op111.net/53 Ho... |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
Un child theme ha uno style.css proprio, mentre eredita tutti gli altri files dal tema padre. Se si modificano questi files, si modificano i files del tema padre. | Un child theme ha uno style.css proprio, mentre eredita tutti gli altri files dal tema padre. Se si modificano questi files, si modificano i files del tema padre. | ||
==Copia del child theme== | |||
*[http://themeshaper.com/functions-php-wordpress-child-themes/ How I used a WordPress Child Theme To Redesign My Blog] | |||
*[http://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/ BuddyPress.org → Docs → Theme Dev: Building a BuddyPress Child Theme] | |||
*[http://fusiondrupalthemes.com/support/theme-developers/subtheming-quickstart Subtheming quickstart | Fusion Drupal Themes Shop] | |||
==Personalizzazione dei files .php== | |||
* Se si deve customizzare un file .php tipo '''header.php''', copiarlo nella cartella del child theme e modificarlo: verrà usato questo al posto di quelo del tema padre | |||
* Se invece si vogliono modificare delle funzioni nel file '''functions.php''', occorre distringuere due casi: | |||
**La funzione è dichiarata nel tema padre in un blocco | |||
if ( ! function_exists( 'fathertheme_function' ) ): | |||
Si può ridefinire semplicemente la funzione nel file functions.php nella cartella del child theme | |||
** La funzione è definita normalmente: seguire le istruzioni | |||
***[http://venutip.com/content/right-way-override-theme-functions Overriding WordPress Functions | venutip.com] | |||
==Riferimenti== | |||
*[http://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/ BuddyPress.org → Docs → Theme Dev: Building a BuddyPress Child Theme] | |||
*[http://op111.net/53 How to make a child theme for WordPress: A pictorial introduction for beginners - op111.net] | *[http://op111.net/53 How to make a child theme for WordPress: A pictorial introduction for beginners - op111.net] | ||
*[http://aaron.jorb.in/blog/2010/04/introducing-thirty-ten/ Introducing Thirty Ten, my guide to creating a Twenty Ten Child Theme] | *[http://aaron.jorb.in/blog/2010/04/introducing-thirty-ten/ Introducing Thirty Ten, my guide to creating a Twenty Ten Child Theme] | ||
Latest revision as of 10:16, 10 December 2010
Un child theme ha uno style.css proprio, mentre eredita tutti gli altri files dal tema padre. Se si modificano questi files, si modificano i files del tema padre.
Copia del child theme
- How I used a WordPress Child Theme To Redesign My Blog
- BuddyPress.org → Docs → Theme Dev: Building a BuddyPress Child Theme
- Subtheming quickstart | Fusion Drupal Themes Shop
Personalizzazione dei files .php
- Se si deve customizzare un file .php tipo header.php, copiarlo nella cartella del child theme e modificarlo: verrà usato questo al posto di quelo del tema padre
- Se invece si vogliono modificare delle funzioni nel file functions.php, occorre distringuere due casi:
- La funzione è dichiarata nel tema padre in un blocco
if ( ! function_exists( 'fathertheme_function' ) ):
Si può ridefinire semplicemente la funzione nel file functions.php nella cartella del child theme
- La funzione è definita normalmente: seguire le istruzioni
Riferimenti
- BuddyPress.org → Docs → Theme Dev: Building a BuddyPress Child Theme
- How to make a child theme for WordPress: A pictorial introduction for beginners - op111.net
- Introducing Thirty Ten, my guide to creating a Twenty Ten Child Theme
- How To Modify WordPress Themes The Smart Way
- Child Themes « WordPress Codex
- How to Customize Twenty Ten Theme // The Blog House