WordPress Child Themes
(work in progress)
Child Themes allow you to edit any theme files you want without disrupting critical theme updates. If you are making changes to core theme files they will be overwritten when performing an update, but child themes are in a separate directory (not a subdirectory of the main theme) and are not overwritten.
Child Themes at WordPress Codex
http://codex.wordpress.org/Child_Themes
Says ” The only required child theme file is style.css, but functions.php is necessary to enqueue styles correctly (below).”
This differs to other explanations which imply that functions.php is not required, and that styles from parent may be called from child style.css using @import url(“../twentytwelve/style.css”);
functions.php should look like this:
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); }
functions.php in child theme (working example)
<?php
function theme_enqueue_child_style(){
wp_enqueue_style('theme-child-style', get_stylesheet_directory_uri(). '/style.css',array('theme-style','theme-skin'),false,'all');
}
add_action('wp_print_styles', 'theme_enqueue_child_style', 20);
Child Themes Explained
http://uploadwp.com/how-to-safely-alter-your-wordpress-theme-child-themes-explained/
This one is quite good:
http://www.gabfirethemes.com/how-to-create-a-wordpress-child-theme/
Child Themes Cheat Sheet. Very useful information
http://www.cryoutcreations.eu/wordpress-themes/wordpress-tutorials/wordpress-child-themes/5
Child Themes Video from WPNYC, 1 hour 20 mins.
https://www.youtube.com/watch?v=ZeiBSW8CXzI
Child themes for wordpress, intro article
How to Modify WordPress Themes the Smart Way – four-part series on child themes at themeshaper.com
1) WordPress Child Theme Basics
2) Modular CSS in WordPress Child Themes
3) Using Filter Hooks in WordPress Child Themes
4) Using Action Hooks in WordPress Child Themes
Child Themes vs Custom Folders
http://kaptinlin.com/support/discussion/1942/striking-v3-05-child-theme-support/p1
Style.css
@import url(“../twentyfifteen/style.css”);
Replace twentyfifteen with the directory name of your parent theme. This line must go after the header code and before any other CSS rules. If you put other CSS rules before the @import, it will not work.
Multisite
If your WordPress installation is multi-site enabled, then you may need to switch to your network administration panel to enable the theme (within the Network Admin Themes Screen tab). You can then switch back to your site-specific WordPress administration panel to activate your child theme.
Template Hierarchy
http://codex.wordpress.org/Template_Hierarchy