25. • Purpose
• Extend, customize, override an existing theme
(parent theme) without editing any of the theme’s
files.
• To modify a theme while leaving the parent
theme intact.
Child Themes
26. • Parent theme can be updated without worry.
• Goodbye, overwritten customizations!
• Reuse the parent theme options across multiple
sites!
• Customize in child themes for site-specific
tweaks.
• Override, extend, or replace hooks and calls.
Benefit?
35. • You created a subfolder in /wp-content/themes for
your child theme.
• You created a styles.css and populated it with the
comment information for WordPress to identify it as
a theme (with a parent).
• You created a functions.php to store theme-specific
PHP.
What did you just do?
42. • You can write and include your own JS, CSS, and
theme files.
• You can write your own PHP functions.php settings
for:
• Customize the Customizer
• Customize the theme display
• Customize the widget areas
• etc.
• And you can write your own page templates!
Features
43. • This is especially helpful if you have consistency on
reusable components when building theme
products.
• Parent theme has all foundational components
(widget areas, media queries, etc.)
• Child theme(s) has the unique style and theme-
specific functionality.
Helpful for Frameworks
44. • This is especially helpful if you have consistency on
reusable components when building theme
products.
• Parent theme has all foundational components
(widget areas, media queries, etc.)
• Child theme(s) has the unique style and theme-
specific functionality.
Helpful for Frameworks