WordPress GuideTheme → Create a Child Theme

How to create a child theme in WordPress

Want to customize your WordPress theme without risking updates wiping out your changes? A child theme is the safest way to modify a theme while keeping everything updatable and organized.

Let’s walk through what child themes are, why they matter, and how to create one—either by hand or with beginner-friendly plugins.

What is a child theme in WordPress?

A child theme is a theme that inherits everything from another theme, called the parent theme. It acts like a skin on top of your original theme. You can change styles, layouts, or even functions in your child theme without ever touching the original files.

When WordPress loads your site, it pulls most of its design and code from the parent theme, but any changes in the child theme take priority. This setup lets you personalize the design while still allowing the parent theme to update safely.

Why use a child theme instead of editing the main theme?

Child themes are the go-to method for customizing any WordPress theme long-term, because:

What you need before creating a child theme

To follow along, make sure you have:

Let’s go over both the manual and plugin-based methods.

Method 1: How to create a child theme manually (step-by-step)

1. Create a new child theme folder

Go to your theme directory:

Create a new folder. Use the parent theme’s name and add -child. For example:

twentytwentyfour-child

2. Add a style.css file

Inside your new folder, create a file called style.css. Add the following to the top of the file:

Important:

3. Add a functions.php file

In the same folder, create a functions.php file. Add the following code to load the parent theme’s stylesheet:

This tells WordPress to use the parent theme’s main stylesheet before applying your custom styles.

4. (Optional) Add a screenshot

Add an image called screenshot.png to your child theme folder. This will show up in your WordPress dashboard under Appearance > Themes.

Recommended size: 1200×900 pixels

Method 2: Use a plugin to create a child theme

If you’re not comfortable editing files directly, you can create a child theme using a plugin—no coding required.

Option 1: Orbisius Child Theme Creator

Step-by-step:

Option 2: WP Child Theme Generator

This plugin offers a slightly cleaner interface for generating basic child themes.

Step-by-step:

How to activate your child theme

Once your child theme is ready (manually or with a plugin):

Visit your site and confirm everything looks the same. If it looks broken, double-check the parent theme name in your style.css.

How to customize your child theme

To change the design

Edit your child theme’s style.css. For example:

To change layout or functionality

You can override any file from the parent theme. Just copy it into your child theme folder and edit it.

For example:

To add new features

Add PHP code to your child theme’s functions.php. Examples:

Best practices for working with child themes

Once your child theme is up and running, a few habits can help you keep things stable, organized, and easy to manage. These best practices will also save you time and stress in the long run.

Troubleshooting common child theme issues

Things don’t always go according to plan …

Enable debugging if needed by adding this to your wp-config.php:
define( ‘WP_DEBUG’, true );

Additional resources

How to change WordPress themes the right way and avoid potential problems→

We’ll go over some reasons why you may want to switch to a new theme and how to prepare your website. Then, we’ll show you a few ways to change your WordPress theme.

WordPress minimalist themes: 10 cleanest designs →

Discover the best minimalist WordPress themes for clean, fast-loading, and distraction-free website designs.













Best free WordPress themes ranked by real performance→

We’ll show you how pairing the right theme with high-performance WordPress hosting – like the plans offered by Liquid Web – can transform your site into a speed machine!