WordPress Development

WordPress Child Theme: When You Need One and How to Set It Up

By Fomarina · Jun 11, 2026 · 11 min read
sual metaphor showing a WordPress child theme protecting custom website edits during a parent theme update.
SHARE

Picture a site owner who has spent weeks editing theme files straight from the dashboard. The fonts are tweaked, the spacing is fixed, and a new section sits right where they wanted it. Then a theme update appears, they click it, and the homepage snaps back to how it looked on day one.

None of that had to happen. A WordPress child theme would have caught every edit and kept it safe. It’s a thin layer that sits over your main theme and holds your changes, so when the main theme updates, your work stays put.

What a WordPress child theme is, in plain terms

Your live theme is the parent. A child theme is a second, mostly empty theme that points back to it. WordPress looks for templates in the child first, and it loads the child’s functions.php just before the parent’s. That lets the child change or swap out bits. Every edit you make lives in the child, so when the parent updates, your child folder doesn’t budge.

The base is two files: a style.css that names the parent, and a functions.php that pulls in the parent’s styles. One detail trips people up. A template file in the child, such as header.php, replaces the parent’s file of the same name. The child’s functions.php loads in addition to the parent’s, so you add to the parent’s functions instead of overwriting them. The child theme handbook explains both rules in detail.

Concept image showing a WordPress child theme folder with style.css and functions.php files connected to a parent theme.

Do you even need one?

The deciding factor is whether you touch theme code. If you edit PHP templates, the header, the footer or functions.php, or you have custom CSS too messy for the Customizer, a child theme is worth it. So is a third-party theme that updates often, since those updates are what wipe your edits.

If you only change colors and fonts, you can leave it out. Block theme users can mostly do without it too, and so can anyone whose theme was built from scratch for their site.

Your situationChild theme?Why
Editing PHP templates, header, footer or functions.phpYesTheme updates overwrite edits made in the parent
Custom CSS too messy for the CustomizerYesIt gets a safe home that survives updates
Third-party theme that updates oftenYesFrequent updates are the main thing that wipes edits
Colors and fonts only, via Customizer or page builderNoYou aren’t touching theme code
Block theme, small tweaksUsually noThe Site Editor and theme.json cover it
Theme built from scratch for your siteNoThere’s no separate parent updating under you

How to set up a WordPress child theme the right way

Five minutes, give or take. This is the order I run it in.

  1. Open wp-content/themes and make a new folder. Name it after your theme, something like yourtheme-child.
  2. Drop a style.css inside. The header at the top flags it as a child and ties it to a parent.
  3. Add a functions.php that brings in the parent’s styles.
  4. Activate the child under Appearance, then Themes.

The style.css header looks like this:

/*
Theme Name: Your Theme Child
Template: yourtheme
*/

Mind the Template line. It has to match the parent folder name letter for letter, or the child won’t attach to anything.

The functions.php looks like this:

<?php
add_action( 'wp_enqueue_scripts', 'child_enqueue_parent_styles' );

function child_enqueue_parent_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}

You’ll see old guides push an @import line in the CSS for this, but you can leave it out. The official WordPress Theme Developer Handbook switched to the enqueue method above a long time ago, and it’s lighter and dodges a render delay.

After you activate the child, nothing on the site should look different, since it’s all still loading from the parent. To change a template, copy that file from the parent into your child folder and edit the copy. WordPress reaches for the child’s version first. Take a backup before you activate anything on a live site, and check your menus and widgets afterward.

Common mistakes that break a child theme

Three slips are easy to make: a Template line that’s off by one letter, editing the parent out of habit, and copying template files you don’t change. That last one costs you later. If the parent changes a template you’ve copied, your copy keeps the old code, so a fix in the parent never reaches that page. After a big parent update, compare your copied files with the new originals.

By hand, or with a plugin?

Doing it by hand takes two files and suits anyone okay with a text editor. A child theme plugin builds the folder and both files for you, handy if code makes you nervous. Its whole job is to create the theme, so once that’s done you can deactivate and delete it.

File manager showing a WordPress Child Theme folder with style.css and functions.php next to the parent theme folder

Fewer plugins also means less to update, which is part of what a WordPress maintenance plan looks after.

Child themes and site speed

A child theme adds almost nothing to your page weight. It loads one small stylesheet and a functions file. The real cost sits in the parent, and the child can’t change that.

So if your site feels slow, look at hosting, images, scripts and caching first. Our guide on how to speed up WordPress walks through the usual causes, and the page on the WordPress cache plugin choice covers one of the quickest wins. If traffic is the worry, WordPress hosting for busy sites is worth a read as well.

When a child theme isn’t the right move

Child themes are great for adjusting a theme you already like. If you’re overriding half the parent’s templates and wrestling its markup on every page, you’ve stopped extending the theme and started fighting it. At that point a website redesign may serve you better than another round of overrides.

A child also never sheds the parent’s weight. The full parent loads underneath it, always. On a business site where speed and a specific design both count, a theme built from scratch usually wins, because nothing loads that you didn’t ask for. That’s the kind of build our WordPress development team handles, and our business website design page shows how we approach it. If you’re still comparing options, the website design packages page lays them out.

For most jobs, though, adjusting a theme you’re happy with, a child theme is the right answer. Set it up once, keep your edits inside it, and let the parent update without any drama. If you’d rather not touch any of it, you can start a project and we’ll set it up clean, or contact us with questions first.

Visual comparison showing a clean WordPress child theme setup beside an overloaded parent theme that needs a custom build.

Frequently asked questions

Does a child theme slow your site down?

Not enough to feel. It loads the parent, plus one small stylesheet and a functions file. With the enqueue setup above, the cost is close to nothing.

If I switch themes later, do my changes follow me?

Your changes stay behind with the old parent. A child theme is welded to its specific parent. Move to a different parent and you start fresh, because the templates and styles it was built against are gone.

Can you make a child theme for a block theme?

You can, though it’s a different route. Block themes run on theme.json settings and the Site Editor, so for small tweaks the Site Editor alone often handles it. For bigger changes, the Create Block Theme plugin will spin up a proper child for you.

Will a parent theme update break my child theme?

Your child folder stays untouched, so your edits survive. The risk is a template you copied from the parent, since it won’t pick up changes made to the original. After a major update, compare your copies with the new parent files.

Marino

Fomarina

Software engineer and IT project manager with a strong technical background in web development and systems architecture.

View all posts by this author →

Ready to accelerate your growth?

Book a free 30-minute strategy session with a senior strategist. No pitch decks, no fluff. Just actionable insights for your business.

Book a free call Send us a message
Book a call