This is a presentation for the WP Melbourne WordPress Meetup. Learn all about WordPress Child Themes. Why you should use them, the benefits of using them and how you go about creating them. If you've ever wanted to tweak your theme and add a few css styles, you should definitely learn how to create and use a Child Theme.
3. #wpmelb @maddisondesigns
A child theme is a theme that
inherits the functionality and
styling of another theme (called
the parent theme). Child themes
are the recommended way of
modifying an existing theme.
“
*https://codex.wordpress.org/Child_Themes
9. #wpmelb @maddisondesigns
Almost Always
If you buy a theme from a Theme Shop or even
download a free one from WordPress.org,
you should consider setting up a Child Theme.
14. #wpmelb @maddisondesigns
Creating a Child Theme Stylesheet
Your Child Theme's style.css file should include:
/*
Theme Name: Your Child Theme Name
Theme URI: http://example.com/my-awesome-child-theme
Description: A description for your Child Theme
Author: Your name
Author URI: http://example.com
Template: parent-theme-folder-name
Version: 1.0.0
*/
* The Template line corresponds to the directory name of the Parent Theme.
e.g. If you were using Twenty Sixteen as the Parent Theme, you would
enter ‘twentysixteen' here (without the quotes)
19. #wpmelb @maddisondesigns
Creating a Child Theme’s Screenshot
Optional Step: Create a .png image (screenshot.png) to display a
screenshot on the Themes page in the Dashboard.
The image should be 1200 x 900px.
20. #wpmelb @maddisondesigns
WordPress Codex
https://codex.wordpress.org
Child Themes on the WordPress Codex
https://codex.wordpress.org/Child_Themes
Official WordPress Theme Directory
https://wordpress.org/themes
Example Child Theme Code
http://maddisondesigns.com/child-theme-example
Links to Remember
21. I’m Anthony Hortin
You can find me here
@maddisondesigns
maddisondesigns.com
@easywpguide
easywpguide.com
Thanks!
Questions?