What Is a WordPress Child Theme?
Updated 18 November 2026
Jump to section
A child theme is a WordPress theme that inherits the design and features of another theme, its parent, and holds your customizations in a separate place. It exists so that edits survive updates. Changes made directly inside a parent theme are erased when that theme is updated, while a child theme keeps them safe. The official WordPress developer handbook recommends a child theme over editing a theme's own files, since the next update erases those edits.
What is a WordPress child theme?
A child theme is a small theme that sits on top of a parent theme and takes on everything the parent provides. You activate the child, and it runs the parent's design and functions while letting you override the parts you want to change.
WordPress's own documentation puts it plainly: "A child theme includes everything from its parent theme by default. This includes the design and any of its functionality. But it can also be used to make customizations to the parent theme without directly modifying the parent theme's files" (WordPress.org, updated January 2024).
So the child is not a copy of the parent. It is a thin layer that inherits everything and stores only your differences.
That layer is what keeps your work separate from the theme you did not write.
Why do customizations vanish without one?
Customizations vanish because a theme update replaces the parent theme's files with fresh ones from the developer. Anything you edited inside those files is overwritten, and the update has no way to know which lines were yours.
This is a specific case of why updates break things. An update swaps the whole folder, so a color you changed or a function you added in the parent is simply gone afterward.
A child theme solves this by design. The same documentation lists among its benefits allowing "parent themes to be updated without losing your modifications". Your changes live in the child, which the parent's update never touches.
The mechanism is worth understanding, since it explains the whole point. When a page is built, WordPress uses the child's copy of any template, part, or pattern and falls back to the parent for everything else. The child's functions.php does not replace the parent's: WordPress runs both, the child's first. Update the parent, and the child keeps working exactly as before.
How a child theme works
A child theme can be a folder with a single file: a style.css whose header names its parent. A functions.php file is optional, added only for custom code. From that one stylesheet, it inherits the parent's entire design and behavior.
You put your changes in the child. A changed template goes in the child as a file of the same name, and WordPress uses it in place of the parent's. Custom code goes in the child's own functions.php, which runs alongside the parent's rather than replacing it.
Everything you do not override still comes from the parent. That is the balance: you get the parent's full theme, updated by its developer, plus your own layer that no update can erase.
Because the child depends on the parent, both stay installed. Removing the parent leaves the child with nothing to inherit, so the pair works together, not as a replacement.
When you need one, and when you don't
You need a child theme when you edit a theme's actual files, and you do not when your changes live somewhere updates cannot reach. The line is simple once you know where a change is stored.
| Your change | Needs a child theme? | Why |
|---|---|---|
| Editing theme template or style files | Yes | Direct edits are overwritten on update |
| Custom PHP functions for the theme | Yes | Keeps your code out of the parent |
| Colors and fonts via the Customizer | No | Stored in the database, not theme files |
| Layouts built in a page builder | No | The builder saves to the database |
| Settings inside a plugin | No | Plugin data is separate from the theme |
Much of what owners change never touches theme files. The dashboard Customizer, page builders, and plugins all save to the database, which a theme update leaves alone.
The child theme matters for code-level work. In our experience, the sites that lose their look after an update are the ones where someone edited the parent theme directly, with no child to protect the changes.
Frequently asked questions
Do I always need a child theme?
No. You need one only when you edit a theme's own files, such as its templates, stylesheet, or functions. If your customizations happen through the Customizer, a page builder, or plugin settings, those are stored in the database and survive updates on their own. Building a child theme for a site that never edits theme code adds a step with no benefit. Match the tool to how the change is actually made.
Will a child theme slow down my website?
No, not in any way a visitor would notice. On WordPress, a child theme adds at most one small stylesheet, and many block themes need none, which is a negligible amount of extra work. The performance of a site depends far more on hosting, images, and plugins than on whether a theme is a child. The protection a child theme gives your customizations far outweighs its tiny overhead.
What happens to my child theme when the parent updates?
Nothing. That is the whole reason it exists. The parent theme's update replaces the parent's files, while your child theme and everything in it stay exactly as they were. After the update, WordPress still uses your child's templates in place of the parent's and still runs your child's functions.php alongside the new parent's, so your customizations keep working. This is why a child theme is the safe way to modify a theme you did not build.
Can I add a child theme to a site that is already live?
Yes, though do it carefully and with a backup first. If the live site has customizations edited directly into the parent theme, you move those into a new child theme, then activate it. The visible result should be identical when done correctly, though Customizer settings are saved per theme, so re-apply them after you activate the child. Test on a staging copy if you can, since a missed customization can change the site's appearance until it is carried over.
Do page-builder sites need a child theme?
Usually not. Page builders such as the common visual editors save their layouts and styles to the database, not to the theme's files, so a theme update does not erase them. A child theme becomes useful only if you also edit the theme's code by hand. For a site built entirely in a page builder, the builder's own content is already safe from theme updates.
Making customizations that last
Storming Solutions builds custom-coded websites for Malaysian businesses and maintains the WordPress sites they already run. Our stance is simple: any change to a theme's code belongs in a child theme, because an update should never erase work you paid for.
Not sure whether your customizations will survive the next update? Send us your site on WhatsApp for a quick check, read about the real cost of owning a website, or talk to us about web development built to update safely.