Skink Insights - WordPress

What Is a WordPress Child Theme and Do You Need One?

By

A WordPress child theme is a small add-on theme that sits on top of your main theme (the “parent”) and holds your customisations, so they are not wiped out when the parent theme updates. You need one if you or your developer are editing the code files of a theme that someone else maintains. You can skip it if you only make changes through the WordPress editor and settings screens, or if your theme was custom built for you.

How does a child theme work?

Every WordPress theme is a folder of files that control how your site looks and behaves. When the theme’s author releases an update, WordPress replaces that whole folder with the new version. Any edits made directly inside those files disappear with it.

A child theme is a second, much smaller folder. In effect it tells WordPress: use everything from the parent theme, except for the things I have here. At a minimum it contains a stylesheet with a short header that names the parent. Most child themes also include a functions.php file for extra code.

WordPress then loads both. If the child has its own version of a template file, such as the header or the single blog post layout, WordPress uses the child’s version. Everything else comes from the parent. The parent can update as often as it likes and your changes stay put.

When do you need a child theme?

A child theme is worth having when all of your changes live in theme files and the theme itself keeps receiving updates. That usually means one or more of these:

  • You are changing template files. For example, rearranging the header, changing how blog posts are laid out, or overriding WooCommerce templates inside your theme.
  • You are adding code to functions.php. Small tweaks and snippets added to the parent’s file will vanish at the next update.
  • Your custom CSS has outgrown the Additional CSS box. A proper stylesheet in a child theme is easier to organise and keep track of.
  • You are using a free or purchased theme that updates regularly. Skipping updates to protect your edits is not a safe trade. Theme updates often include security fixes, so you want to be able to install them without fear.

When can you skip it?

Plenty of sites never need a child theme. You can usually go without one if:

  • You only use the editor and settings screens. Changes made in the block editor, the Site Editor or the Customiser are saved in your site’s database, not in the theme’s files, so theme updates do not overwrite them.
  • You only need a few lines of CSS. The Additional CSS area is built for exactly that and survives updates.
  • You are on a modern block theme. Template and style changes made in the Site Editor are stored separately from the theme, which covers most of what child themes were once needed for.
  • Your theme was custom built for your business. With a custom WordPress theme, there is no outside author pushing updates over the top of your work. Changes go straight into the theme itself.
  • The change is about what the site does, not how it looks. Features like custom content types, bookings or integrations belong in a plugin, so they keep working even if you change themes down the track.

How do you set up a child theme?

There are three common ways to go about it:

  1. Check with your theme’s maker. Many popular commercial themes offer a ready-made child theme you can download and install.
  2. Use a plugin. There are plugins that generate a child theme for you. For block themes, the Create Block Theme plugin from the WordPress project can do this.
  3. Create it by hand. Add a new folder in wp-content/themes, add a style.css file whose header names the parent theme’s folder on the “Template” line, then activate it under Appearance, Themes.

Whichever route you take, try it on a staging copy of your site first. On classic themes, Customiser settings such as menu locations, widgets and colours are saved per theme, so some may need to be set again once the child theme is active. And remember that the parent theme has to stay installed. Delete it and the child theme stops working.

What are the downsides?

A child theme is not something you set up once and forget. When you override a template, your copy no longer receives the parent’s improvements or fixes to that file. After a big parent update, an old override can drift out of step and cause layout glitches or missing features.

The fix is simple discipline: override as little as possible, keep a short note of what you changed and why, and check those files after major updates. If the list of overrides keeps growing, that is a sign the theme is fighting you, and a purpose-built theme from a WordPress development team may cost less in the long run than constant patching.

Not sure what your site is running?

If you are not sure whether your customisations are safe from the next theme update, we are happy to take a look. Skink is part of the Defyn group, so there is a full development team behind the trickier jobs. Call us on 02 9834 4119 or get in touch and we will tell you plainly what you have and what, if anything, needs doing.

Rachael Orlando

Need a WordPress website, theme or plugin built properly? We would love to help.

Start a project