A WordPress parent theme is a complete theme. A child theme depends on it and can supply its own styles, templates, or code. When you use a child theme, install both themes but activate only the child. WordPress uses the parent for the parts the child doesn’t replace. The practical reason to use one: a parent update can replace the parent’s files, but it doesn’t overwrite the files in your separate child theme folder.
That makes a child theme useful for changes that need to live in theme files. It doesn’t make every design tweak a two-theme operation, and it doesn’t make your customizations immune to changes in the parent. An update can leave your files untouched and still make them behave differently.
When do you actually need a child theme?
- For a color, font, or spacing change: Start with the theme’s controls. For a block theme, look under Appearance → Editor → Styles. For a classic theme, check Appearance → Customize if your site exposes the Customizer. For a small CSS tweak, use the Additional CSS control if available. You don’t need a second theme folder to move one button six pixels.
- For a template change you want to keep in files: Use a child theme. Examples include changing the markup of a classic theme’s post template or keeping a block template in version control. If you only need a visual layout change on one site, the block theme’s Site Editor may be enough.
- For functionality that should survive a theme switch: Use a plugin instead. A custom post type, for example, shouldn’t depend on which theme draws its pages.
Before you switch, save a restorable backup of the files and database and work on staging. Note the active theme and take screenshots of key pages. If you’ve already edited the parent’s files, compare them with a clean copy of the same parent release so you can identify and move your changes. Activating a child doesn’t move them for you.

Set up and activate a child theme
- Find the parent’s directory name. In your host’s file manager or over SFTP, open
wp-content/themesin a standard WordPress installation. Find the parent’s actual folder name. If the dashboard calls the theme “Example Parent” but the folder isexample-parent, useexample-parentin the next step. - Create a separate folder for the child. In that same themes directory, create
example-childalongside the parent, not inside it. Add a plain-text file namedstyle.cssat the root of the child folder. Start it with the header below, replacing the sampleTemplatevalue with your parent’s exact folder name.
/*
Theme Name: Example Child
Template: example-parent
*/
- Check the parent’s stylesheet instructions before adding CSS. The header identifies the theme relationship; it doesn’t dictate which stylesheets load. Some parents load their own CSS and the child stylesheet; others don’t. Follow the parent’s child-theme instructions if provided. On staging, use the browser’s Network and Styles panels to see what loaded and which rules apply. Don’t paste a generic enqueue snippet on top of a setup that already loads both files.
- Activate the child on staging. Go to Appearance → Themes, find the child by its
Theme Name, and click Activate. Keep the parent installed. Before adding any overrides, check the homepage, a single post, an archive, and the header and footer on desktop and mobile. Also check menus and any theme-specific settings: some settings can differ after a theme switch even though your posts and pages are still there.
Know what gets replaced, what gets loaded, and what lives in the database
Classic templates are replaced one file at a time. If the parent uses single.php for the post you want to change, copy that file to the child’s root and edit the copy. If a more specific template applies to the post, WordPress can select it instead of your child’s single.php. Check which template the page actually uses before copying files. The smallest useful override is easier to maintain than a duplicate of the whole parent.
Block templates have another layer. A child’s templates/single.html can override the parent’s file of the same name. But a customized version of that template saved through the Site Editor for the active theme can take priority over the file. Check Appearance → Editor → Templates on staging before assuming your file is being ignored. If you want the file version to take over, preserve the saved layout first, then look for the option to reset or clear the template’s customizations. That removes the saved customization, so it’s not a harmless diagnostic click.
functions.php is different from a template. WordPress loads the child’s functions.php before the parent’s; it does not load one instead of the other. Don’t copy the parent’s file into the child. If both files declare the same function without guards, the site can hit a fatal redeclaration error. Add only the child’s own code, using distinct names and the theme’s documented hooks where appropriate.
Troubleshoot the symptom before changing more files
- The child is missing or marked broken: Check that
style.cssis directly inside the child folder, not buried in an extra folder or saved asstyle.css.txt. Confirm thatTemplatematches the installed parent’s folder name, including spelling and case. - The layout looks unstyled, or the new CSS does nothing: In the browser’s Network panel, check for missing CSS requests and confirm the expected files loaded. Then inspect the affected element. A missing stylesheet is a loading problem; a crossed-out declaration means another rule won. If the browser is receiving an older file, check the relevant cache on staging before rewriting the rule.
- A template edit changes nothing: Verify that the child is active and that the file’s name and location match the template you intend to override. Check for a more specific template, an explicitly assigned template, or, for block themes, a saved Site Editor customization.
- A parent update breaks only one layout: Compare the child’s override with the updated parent file on staging. The child keeps using its copy, so fixes and markup changes in that particular parent file don’t automatically reach it. Bring across the relevant upstream changes, or retire the override if you no longer need it.
Once the staging checks pass, deploy the child files and repeat the same checks on the live site. If you made Site Editor changes on staging too, plan for them separately: copying a theme folder doesn’t copy database-saved edits. Keep a short note listing each override, why it exists, and which page proves it still works. That gives you a useful test plan for the next parent update.