What a child theme does
A child theme inherits much of its functionality and appearance from a parent theme while allowing you to maintain selected customisations separately. This is useful when you need code-level changes that should survive routine parent-theme updates. It is not necessary for every visual adjustment; the Site Editor, theme settings or a custom CSS facility may be sufficient.
Create a clear theme folder
Give the child theme its own directory inside wp-content/themes. Include a style.css file with a valid theme header that identifies the child theme and its parent template directory. The Template value must match the parent theme's directory name exactly, including its spelling.
Load styles using the correct approach
Modern WordPress themes and classic themes can handle styles differently. Follow the parent theme's documented method where available. Avoid blindly copying old enqueue snippets from tutorials: loading styles twice or in the wrong order can create confusing overrides. Test the result after activating the child theme.
Add functions carefully
A child theme can include functions.php for additional PHP. WordPress loads the child and parent functions files rather than treating the child file as a complete replacement. Use unique function names or suitable prefixes, and avoid redeclaring functions that the parent already defines.
Override templates selectively
A child theme can contain copies of certain parent template files. WordPress may use the child version in preference to the parent version. Copy only the files you genuinely need to change, because copied templates can become outdated when the parent theme changes its markup or features.
Maintain and test the customisation
Keep a record of every modified template and why it was changed. Before updating the parent theme, review its release notes and compare affected files. Test key page types, navigation, responsive layouts and forms on a staging site when possible.
Know when another approach is better
If you are building a full custom design, a block theme or a purpose-built theme may be more suitable. If you only need to change colours or spacing, use supported theme controls where possible. Choose the smallest maintainable method that meets the requirement.
Conclusion
Child themes provide a useful separation between parent theme updates and custom code. A small, documented set of overrides is easier to test and maintain than a child theme filled with unnecessary copied files.
]]>