You can learn how to create a WordPress child theme in about 15 minutes. A plugin or two small files will do the job. The child theme holds your changes and a parent theme update never wipes them.
Editing the parent theme directly is the usual mistake. The next update overwrites those files and your design changes are gone. We checked every step below against the WordPress Theme Handbook and the Twenty Twenty-Five theme code in October 2026.
This guide covers the plugin method and the manual method for classic themes. It also covers child themes for block themes like Twenty Twenty-Five and the quick route for an Astra child theme.
What Is a WordPress Child Theme and Why Do You Need It?
A WordPress child theme is a small theme that borrows the design and features of a parent theme. You put your own CSS, templates and functions in the child. The parent stays untouched. You can update it at any time and keep every change you made.
What Is a Child Theme?
A WordPress child theme is basically a theme that takes on all of the styling, layout and features of a parent theme. The child theme acts as a “layer” above the parent theme. With a child theme, you can create custom styles, templates, and functions while adhering to the parent theme’s original files.
Think of it this way:
- Parent theme: The structure and bones of your house.
- Child theme: The paint, furniture, and decor you add to make the house your own.
Changes you make in the child theme never touch the files of the parent theme.
Why is Using a Child Theme Important?
There are a couple of important reasons to create a child theme that should matter to both website owners and developers:
- Safe Updates to the Parent Theme: When you update a parent theme, WordPress will overwrite the entire parent theme and all of its files. If you made customizations to any or all of those files, they will be replaced. With a child theme, you keep your changes separate. Therefore, you can update the parent theme without losing any of your work.
- Better Maintainability: When you put your custom code in a child theme, you don’t clutter the parent theme. This helps you maintain and troubleshoot, and debug your site in a timely manner later.
- Room to Experiment: A child theme gives you a safe place to try a new design or change how the theme works. If something breaks, switch back to the working parent theme.
- A Good Way to Learn: If you are learning theme development, a child theme lets you change one file at a time. You see what each edit does without risking the parent theme.
Example Scenario
Let’s say you’re using the popular Astra theme and you want to configure the header design. If you go ahead and edit the theme files and an update is released, you lose those changes or customizations. However, if you create a custom Astra Child Theme, your changes will be safe. Astra can then continue to release updates and new features. Our guide to index.php in WordPress explains which theme file loads when no other template matches.
Worth knowing: A child theme lets you customize your site and still install every parent theme update, including security fixes. Our WordPress security checklist explains why those updates matter.
Prerequisites for Creating a WordPress Child Theme
Before you create a WordPress child theme, you need four things in place. You need access to your site files, a code editor and the parent theme installed. You also need a fresh backup, and a local copy of the site helps if you want to test first.
1. Access to Your WordPress Files
You will need to access your WordPress theme files to create a child theme, especially if you are going to proceed down the manual creation route. There are two common ways in:
- FTP/SFTP Access (use an FTP client like FileZilla to access your hosting server).
- Hosting File Manager (most hosting control panels, e.g., cPanel and Plesk) have a built-in hosting file manager that provides quick access.
Tip: If you are a beginner, use the file manager in your hosting control panel. It is easier than setting up FTP software.
2. A Text/Code Editor
You will need to edit the files style.css and functions.php. WordPress has a built-in theme file editor, but a code editor with syntax highlighting catches mistakes before they reach your site. These free editors all work well:
- VS Code (recommended for developers)
- Sublime Text
- Notepad++
3. An Installed Parent Theme
A child theme cannot work alone. It always inherits styles and features from a parent theme. Install the parent theme (like Astra, GeneratePress or Twenty Twenty-Five) before you create the child.
4. Basic Understanding of WordPress Theme Structure
You do not need to be a skilled coder, but it helps to know what these files do:
style.css: This file names the child theme and holds its styles.functions.php: This file loads your styles and holds your own custom functions.- Template files: Files like
header.phpandfooter.phpare where you override layouts.
5. Backup Your Website
Before you change anything, back up your website (files and database). If something goes wrong, you can restore the site in minutes.
There are several different backup tools you can use:
- UpdraftPlus (plugin)
- Jetpack Backup
- Manual backup with your hosting panel
6. (Optional) Set Up Local Development
If you want to be able to experiment without affecting your live website, you can install WordPress locally using LocalWP or XAMPP. Local development is good for beginners who are learning customizations with child themes.
How to Create a Child Theme in WordPress: 2 Methods
You can create a child theme in WordPress with a plugin or by hand. The plugin builds the folder and files for you in a few clicks. The manual route takes two small files and gives you full control over what loads, which is the method the WordPress Theme Handbook documents.
A child theme is also the safe place to register a custom widget area for the footer.
- Using a plugin (easiest for beginners)
- Creating a child theme manually (for complete control)
Method 1: How to Create a WordPress Child Theme Using a Plugin
If you are not comfortable editing theme files, a plugin is the easiest way to create a child theme. The plugin creates the folder and the files for you. No coding is required.
Step 1: Installing and Activating a Child Theme Plugin
Several plugins can create child themes. The most used one for classic themes is Child Theme Configurator, with 300,000+ active installs. As of October 2026 its last update was in June 2025, and WordPress.org warns it has not been tested with the latest three major releases. Test it on a staging site first. Here is how to install it:
- Once logged into your WordPress Dashboard, go to Plugins > Add Plugin.

- Search for Child Theme Configurator.

- Click on Install Now and then Activate the plugin.

Step 2: Create Your Child Theme
Once activated, the next step is to create your child theme. To do this in your dashboard:
- Go to Tools > Child Themes.

- In the “Parent/Child” tab, look for and select the parent theme you wish to customize.

- Click on Analyze. The plugin checks that the parent theme can support a child theme.

- Scroll down to the bottom to “Click to Edit Child Theme Attributes” and confirm the name of the child theme (you can name the child theme here).

- Click Create New Child Theme. The plugin creates the folder and the files it needs (
style.cssandfunctions.php).
Step 3: Activate your Child Theme
- Go to Appearance > Themes.

- You should see the new child theme listed (normally with the name “Parent Theme Child”).

- Click Activate, and you will have successfully activated the new child theme.

Your site now runs on the child theme and still inherits every style and feature from the parent theme.
Step 4: Safely Customize
Now that you have activated the child theme, you can:
- Add custom CSS via Appearance > Theme File Editor or in
style.css.
- Copy the template files into the child theme folder and edit the templates.
- Add PHP functions to the child theme’s
functions.phpfile.
Pro Tip: Test changes on a staging or local site first, and keep a recent backup in case a change breaks your live site.
Method 2: How to Create a WordPress Child Theme Manually
Manually creating a child theme provides complete control over customization. It is also an excellent way to learn how WordPress themes function. Doing it this way means you will create two necessary files (style.css and functions.php) and activate them using the dashboard.
Step 1: Create a New Folder for the Child Theme
- Use FTP/SFTP (FileZilla) or the File Manager from your hosting provider to access your WordPress site files.
- Go to the /wp-content/themes/ directory.
- In this directory, make a new folder called your parent theme name with the suffix “-child”.
- Example: If your parent theme is
twentytwentyfive, name the foldertwentytwentyfive-child.
- Example: If your parent theme is
Tip: Always use lowercase and no spaces when naming the new folder, as this can cause conflicts.
Step 2: Create the style.css File

Inside the new folder, create a file called style.css. This file tells WordPress the name of your child theme and which parent it belongs to. It also holds your own styles.
Add the following header comment to the file:
/*
Theme Name: Twenty Twenty-five Child
Theme URI: https://example.com/twentytwentyfive-child
Description: Child theme for the Twenty Twenty-Five theme
Author: DevDiggers
Author URI: https://devdiggers.com
Template: twentytwentyfive
Version: 1.0.0
*/
/* Add your custom styles below */
body {
background-color: #f5f5f5;
}
Important Notes:
- The Template field matches the folder name of your parent theme exactly.
- Theme Name can be anything you find descriptive.
- The rest (URI, Author, Description) are optional but should be included for better clarity.
Step 3: Create the functions.php File

Do not use the old @import line to load the parent styles. It slows the page down, and many parent themes already load their own stylesheet. The Theme Handbook loads styles with PHP instead.
Twenty Twenty-Five already loads its own style.css under the handle twentytwentyfive-style. So the child only needs to load its own stylesheet after it. In the child theme folder, create a file called functions.php and put this code in it:
<?php
// Load the child theme stylesheet after the parent stylesheet.
function dd_child_theme_enqueue_styles() {
wp_enqueue_style(
'dd-child-style',
get_stylesheet_uri(),
array( 'twentytwentyfive-style' ), // Handle the parent theme uses for its style.css.
wp_get_theme()->get( 'Version' )
);
}
add_action( 'wp_enqueue_scripts', 'dd_child_theme_enqueue_styles' );
Other parent themes use a different handle. Look it up in the parent’s functions.php. If the parent loads no stylesheet of its own, add a second wp_enqueue_style() call with get_parent_theme_file_uri( 'style.css' ). This method works for three reasons:
- It follows the method in the WordPress Theme Handbook.
- It doesn’t cause render-blocking issues with
@import. - The dependency makes the parent style load first and the child style second.
Step 4: Activating the Child Theme
- Open up your WordPress dashboard and click Appearance > Themes.

- Your new child theme should now be listed with the name you chose/added in
style.css. Click Activate to switch your site to it.
At this point, your site is running on the child theme and is inheriting everything from the parent theme.
Step 5: Customize the Child Theme

Now that your child theme is active, you can start:
- Adding custom CSS rules to your
style.css. - Copying template files from the parent theme to the child theme folder (
header.php,single.php, etc.) and modifying the code inside them. - Adding new functions to
functions.phpto extend what the parent theme does.
How to Create a Child Theme for a Block Theme
Block themes like Twenty Twenty-Five use child themes too, and our Sketch to WordPress block theme build is one. The setup is lighter. The child gets its own theme.json, which WordPress merges over the parent file. The free Create Block Theme plugin can build the whole child from the Site Editor in a few clicks.
How theme.json Inheritance Works
WordPress reads styles in layers. Its own defaults load first. The parent theme.json loads next and the child theme.json loads last. Changes you save in the Site Editor sit on top of all three.
So a child theme.json only needs the settings you want to change, like one color or one font size. Everything else comes from the parent. The handbook notes that loading style.css is often not needed in block themes, since most styling lives in theme.json.
Create the Child with Create Block Theme
Create Block Theme is a free plugin. It was at version 2.10.2 with 20,000+ active installs as of October 2026. Follow these steps with your block theme active:
- Install and activate Create Block Theme from Plugins > Add Plugin.
- Open Appearance > Editor.
- Click the Create Block Theme icon to the left of the Save button.

- Choose Create Theme > Create Child Theme, give it a name and save.

- Go to Appearance > Themes and activate the new child theme.
How to Create an Astra Child Theme
Astra users can skip the manual files. Astra offers a free Child Theme Generator that builds a ready child theme and downloads it as a zip file. You upload that zip like any theme, and Astra itself must stay installed because the child depends on it.
We took these steps from the Astra child theme docs. They match the docs as of October 2026.
- Open the Astra Child Theme Generator, type a name for your child theme and click Generate.
- Save the zip file to your computer.
- In WordPress, go to Appearance > Themes > Add Theme > Upload Theme.
- Choose the zip, click Install Now and then Activate.

Note: Astra says Additional CSS added to the parent theme does not move to the child theme by itself. Copy it into the child after you activate it.
Conclusion
Knowing how to create a WordPress child theme protects every design change you make. Parent theme updates, including security fixes, install without wiping your work.
Pick the route that fits your theme. Child Theme Configurator is the quick option for classic themes. The manual method takes two files and teaches you how themes load. For block themes like Twenty Twenty-Five, Create Block Theme builds the child from the Site Editor.
Start small with a few CSS rules in style.css. Move on to template overrides and custom functions once those work.
FAQs About Creating a WordPress Child Theme
Q1. What is a WordPress child theme?
A WordPress child theme is a theme that inherits all the features and design of a parent theme, allowing you to make custom changes without affecting the original theme.
Q2. Why should I use a child theme?
Using a child theme ensures that your customizations are safe and won’t be lost when the parent theme gets updated.
Q3. Can I create a child theme without coding?
Yes, you can use free WordPress plugins like Child Theme Configurator to create a child theme without writing any code.
Q4. Will activating a child theme change how my site looks?
Mostly no. The layout and styles carry over from the parent theme. But Customizer settings and Additional CSS are saved per theme, so copy them to the child after you activate it.
Q5. Can I switch back to the parent theme after using a child theme?
Yes, you can deactivate the child theme at any time and return to the parent theme or any other theme without breaking your site.
