Dipping into Child Themes
summary
Shows how to build a minimal child theme for Twenty Seventeen using just style.css and functions.php, with the functions file enqueuing the parent then child styles (handles shown). Demonstrates a real change: adding a border-radius via CSS, adding Open Graph output for featured images, and swapping Google Fonts for self‑hosted fonts. Explains template hierarchy and that front-page.php overrides home.php, and that the child functions file runs before the parent.
AI-written summary · about
chapters (5)
- 0:00Start
- 1:06Child Themes were introduced in WordPress 2.7 "Coltrane" (2008) A Child Theme inherits features from a Parent Theme
- 14:17functions.php • Add 'plugin like' support to a theme Best used for theme specific improvements • Add menus, specific plugin support and adjustments to "functionality"
- 18:00Template Hierarchy • A Child Theme's template will override the Parent Theme version Useful for small adjustments Fantastic for introducing new templates
- 22:43Template Hierarchy • Add custom page templates • Customize archive templates • Create conditional templates
