Creating a WordPress child theme is still the safe way to add PHP, a real stylesheet or template overrides without losing those changes when the parent theme updates.
You do not always need one. On a block theme, many design changes already live in the Site Editor. On Blocksy, Customizer and theme options survive parent updates, per Creative Themes.
This guide shows the required style.css header, how enqueueing differs by parent, how block-theme children use theme.json, and when an official child-theme zip is the better start.
⚡ Quick answer
- Best for: custom PHP, a stylesheet file, or template overrides that must survive updates and stay portable across sites.
- Skip it if: you only need a few CSS rules in Additional CSS or the Site Editor, or you only use a theme’s built-in options.
- Time needed: 20 to 40 minutes by hand, or about 10 minutes with Create Block Theme or a vendor zip, plus a check on staging.
- Our call: Put file-level changes in a child theme. Use the Site Editor or Additional CSS for small design tweaks. For Blocksy, start with the official child theme and copy options before you write CSS.
Contents
- What is a WordPress child theme?
- What you need before you start
- Step 1: Decide whether you need a child theme
- Step 2: Create the folder and style.css
- Step 3: Add functions.php and enqueue styles
- Step 4: Customize a block-theme child
- Step 5: Override templates in a classic child
- Step 6: Install a vendor child theme (Blocksy example)
- Step 7: Install, activate and test
- How to check it worked
- What breaks and how to undo it
- Frequently Asked Questions
- Should you create a child theme?
What is a WordPress child theme?
A child theme inherits the parent’s design and features, then holds only your modifications. The official Theme Handbook chapter on child themes (last updated 26 January 2024, still the current reference) is the source for the rules below.
When the parent updates, your folder is left alone. That is the whole point. Edit the parent directly and the next update wipes the work.
The same idea works for classic themes and block themes. The files you override are what changes. Classic children usually add PHP templates and CSS. Block children more often add a theme.json file, HTML templates and patterns, which we cover in our theme.json guide.
WordPress does not support grandchild themes. There are only two theme layers: parent and child.
On a block theme there is an extra user-customization layer stored in the database. It can override theme.json, templates and patterns, and it is not a portable theme you can zip and install elsewhere.
The Handbook also warns that a huge child theme can become a headache. If you are rewriting half the parent, forking a new parent theme is often cleaner than maintaining an oversized child.
Do this if you want changes that live in files and survive updates. Skip it if you only need a one-line CSS fix; our guide to adding custom CSS in WordPress covers the Customizer, Site Editor and Additional CSS options.
What you need before you start
- A staging site or a local copy. Activating a new theme can hide Customizer settings until you copy them. Our local WordPress development guide is enough for a first test.
- The parent theme’s folder name, exactly as it appears under
wp-content/themes/. TheTemplateheader must match it 100%. - File access via SFTP, a file manager, or a local folder you can zip.
- A backup of the site, including the themes folder.
- Optional: the official Create Block Theme plugin if the parent is a block theme and you would rather export from the Site Editor than write files by hand.
Step 1: Decide whether you need a child theme
Create a child theme when the change belongs in a file: a PHP function, a CSS file you want in version control, or a template override.
Skip it when the theme already stores the change safely. Additional CSS, Site Editor edits and most theme-option panels survive a parent update because they live in the database, not in the parent’s files.
Creative Themes is explicit about this for Blocksy: for most sites a child theme is not required, because Customizer and built-in options are preserved during updates. A child becomes useful when you need custom PHP, your own stylesheet, or file overrides.
A code snippet plugin can also hold small PHP snippets without a child theme. That is fine for a single filter. A child theme is better when the code should travel with the theme, or when you are overriding templates.
Our take: if you are about to open the parent’s functions.php, stop and make a child instead. If you are about to paste ten lines of CSS into Additional CSS, a child theme is optional.
Step 2: Create the folder and style.css
style.css is the one required file. The Handbook’s example uses a child of Twenty Twenty-Four named Grand Sunrise, in a folder called grand-sunrise.
Create that folder under wp-content/themes/. Then add style.css with a file header. The Template field must match the parent folder name, not the pretty theme name.
/**
* Theme Name: Grand Sunrise
* Template: twentytwentyfour
*/
The Template value is the parent folder name, not the theme’s display title.
For a Blocksy child you would write Template: blocksy, because the parent folder is blocksy. For GeneratePress it is usually generatepress. Check the folder, do not guess from the label in Appearance → Themes.

You can add other header fields later (description, author, version).
They are useful, but they are not what makes the child work. A wrong Template value is. WordPress will not treat the folder as a child of the theme you had in mind, and activation will fail or attach to nothing useful.
This file is required for block-theme children too, even if you never put CSS in it. Block themes often keep design tokens in theme.json instead of a stylesheet, which is why enqueueing is a separate step.
Common mistake: using the parent’s display name, such as “Twenty Twenty-Four”, in the Template field. It has to be the folder slug.
Step 3: Add functions.php and enqueue styles
A child functions.php does not replace the parent’s file. Both load, and the child loads first. Never copy the parent’s functions.php into the child. Duplicate function names can fatally error the site.
Loading style.css is optional. The Handbook says it is often unnecessary for block themes, because style is usually handled in theme.json. Do it when you actually have CSS in the file and the parent does not already load it.
You have to look at how the parent enqueues styles. There is no single recipe.
If the parent loads neither stylesheet, or only its own
Twenty Twenty-Four does not load a stylesheet at all. In that case, enqueue the child’s style.css yourself:
add_action( 'wp_enqueue_scripts', 'grand_sunrise_enqueue_styles' );
function grand_sunrise_enqueue_styles() {
wp_enqueue_style(
'grand-sunrise-style',
get_stylesheet_uri()
);
}
Use this when the parent does not enqueue a stylesheet of its own.
If the parent loads only the active theme’s stylesheet
If the parent already calls get_stylesheet_uri(), it will load the child’s file once the child is active. You may then need to enqueue the parent’s stylesheet as well:
add_action( 'wp_enqueue_scripts', 'grand_sunrise_enqueue_styles' );
function grand_sunrise_enqueue_styles() {
wp_enqueue_style(
'grand-sunrise-parent-style',
get_parent_theme_file_uri( 'style.css' )
);
}
This loads the parent stylesheet so the child can sit on top of it.

If you need to include extra PHP files, use get_theme_file_path(). For a file URL, use get_theme_file_uri(). Those functions resolve to the child when the file exists there, which is what you want.
The catch: some parents, Blocksy included, do not enqueue the child stylesheet by default. Putting CSS in style.css and wondering why nothing changes is a common miss. The Blocksy-specific snippet is in Step 6. Our guide also covers a Blocksy child theme and why style.css can stay silent until you hook it.
Step 4: Customize a block-theme child
On a block theme, the Site Editor is often enough for typography, colors and template tweaks, as Learn WordPress also covers for block-theme children. Our Full Site Editing guide and the older roundup of Full Site Editing themes cover that path.
Use a child theme when you want those changes in files: a portable export, a design system in theme.json, or templates that should not live only in the database.
A child’s theme.json is merged with the parent’s, and the child’s values win for the properties you set.
You can ship a short file that changes the palette and fonts, and inherit the rest. That is why a child is a good place to lock a design system without forking the whole theme.
To override a template, part or pattern, add a file with the same name (and, for patterns, the same Slug) in the child. You can also add new ones that the parent does not have.
Remember the database layer. User customizations in the Site Editor can still override the child’s files on the front end. If a template change “does not appear,” check whether a saved Site Editor customization is sitting on top of it.
Create the child from the Site Editor
The official Create Block Theme plugin can create a child of the active theme from the Editor, including recent style and template changes.
On the plugin page (version 2.10.2, checked November 2026) the path is: open the Editor, click the plugin icon to the right of Save, choose Create Theme, then Create Child Theme.

⚠️ The catch: the plugin also has a Save Changes action that writes into the currently active theme. That can change the parent for good. Use Create Child Theme, not Save Changes, if the active theme is a parent you still want to update from WordPress.org.
The plugin page lists WordPress 6.8 or higher as a requirement, and “tested up to” 6.9.12 at the time of writing. WordPress 7.x is already in the wild, so test the export on staging and keep the plugin updated.
Do this if you already designed the site in the Site Editor and want a portable child. Skip Save Changes on a parent theme you did not author.
Step 5: Override templates in a classic child
On a classic theme, copy only the template you need from the parent into the same relative path in the child, then edit the copy. A child header.php or single.php replaces the parent’s file of the same name.
Do not copy the whole parent. Each overridden file is a fork you must keep compatible when the parent changes.
That is the same warning Creative Themes gives for Blocksy file overrides, and it applies to any classic parent, including themes in our WordPress blog themes roundup.
For a small design tweak, CSS in the child stylesheet (once it is enqueued) or a well-targeted snippet is usually safer than a copied header.php. Theme-specific CSS work, such as loading Adobe Fonts in GeneratePress, often belongs in the child rather than the parent.
If you are choosing a parent mainly for SEO-minded defaults, our SEO-optimized themes guide is a better starting point than heavy template overrides.
Common mistake: overriding a template and then ignoring parent changelog notes. When the parent updates that file, diff the two copies and fold in anything you still need.
Step 6: Install a vendor child theme (Blocksy example)
If the vendor ships an official child theme, start there instead of inventing a folder. Creative Themes documents this in its Blocksy child theme article (updated 27 August 2026).
- Download the official Blocksy child theme zip from the documentation’s download link.
- Go to Appearance → Themes → Add New → Upload Theme.
- Upload
blocksy-child.zipand click Install Now, then Activate. - Leave the main Blocksy theme installed. The child will not work correctly without its parent.

WordPress stores Customizer settings separately for parent and child themes. After you activate the child on an existing site, options can look missing. Blocksy’s fix is the Copy Options feature in the Manage Options pane, which requires the Blocksy Companion plugin.
Blocksy also does not load the child’s style.css by default, to avoid an extra request when the file is only a header. If you want to put CSS in that file, add this to the child’s functions.php, from the same docs page:
add_action( 'wp_enqueue_scripts', function () {
wp_enqueue_style( 'blocksy-child-style', get_stylesheet_uri() );
} );
Add this only if you plan to put CSS in the child’s style.css file.
Other theme shops often ship a similar official zip. Use it when it exists. The Template header and enqueue behavior are still worth checking, because vendors do not all load styles the same way.
Step 7: Install, activate and test
If you built the folder locally, zip the child folder (the folder itself, not a pile of loose files) and upload it at Appearance → Themes → Add New. If you already placed it in wp-content/themes/, it should appear in the Themes screen.
Click Activate. The site should look like the parent, plus any files you added. If it looks unstyled, you probably still need the enqueue step, or a Customizer copy step on a theme like Blocksy.
Keep the parent installed and, for security and features, keep it updated. The child depends on it.
How to check it worked
- Appearance → Themes shows the child as active, and the parent is still installed.
- The site loads. A white screen usually means a PHP error in
functions.php, often a copied parent function. - A temporary CSS rule in the child’s
style.css, such as a heading color, appears on the front end after enqueueing (and a cache purge). - A unique function in the child’s
functions.phpruns, and the parent still works. - On a block child, a
theme.jsonpalette change appears in the Site Editor, unless a saved user customization is overriding it. - Updating the parent does not delete the child folder or your CSS.
What breaks and how to undo it
| Symptom | Likely cause | Fix |
|---|---|---|
| Theme will not activate as a child | Template does not match the parent folder name | Correct the header so it matches wp-content/themes/<parent> exactly |
| White screen after activation | Copied parent functions.php, or a PHP typo | Rename or empty the child’s functions file via SFTP, then add code back slowly |
| CSS in style.css does nothing | The file is not enqueued (common with Blocksy and some block themes) | Add the enqueue snippet; purge caches |
| Customizer options look empty | Settings are stored per theme (Blocksy documents this) | Use the theme’s copy-options tool, or re-apply settings |
| Template change does not show on a block theme | A Site Editor customization is overriding the file | Check Appearance → Editor → Templates for a saved override |
| Layout breaks after a parent update | An overridden template is now stale | Diff the parent file and fold in the new changes, or remove the override |
To undo the child theme: switch back to the parent under Appearance → Themes.
The child folder can stay installed. Database Customizer values for the child remain stored for that theme, so switching back should restore the parent’s previous options. That is also why a Blocksy site can look “reset” when you first activate the child.
Frequently Asked Questions
Do I need a child theme for a block theme?
Not always. The Site Editor already stores many style and template changes in the database, so they survive a parent update. Create a child theme when you want those changes in files, need custom PHP, or want a portable theme.json and templates you can install on another site.
What does the Template header in style.css do?
It tells WordPress which parent folder to inherit. The value must match the parent’s folder name under wp-content/themes exactly, such as twentytwentyfour or blocksy. A display name like Twenty Twenty-Four will not work. style.css is required even if you keep your CSS in theme.json.
Does a child functions.php replace the parent file?
No. Both files load, and the child loads first. That lets you add functions without editing the parent. Do not copy the parent functions.php into the child, because duplicate function names can cause a fatal error. Add only the new code you need.
Can I create a child theme without writing code?
For a block theme, yes, with the official Create Block Theme plugin. In the Site Editor, use Create Theme, then Create Child Theme, so changes are exported into a new child instead of being saved into the parent. For some classic or hybrid themes, download the vendor’s official child-theme zip instead.
Will Site Editor changes survive a theme update?
User customizations are stored in the database, so they are not overwritten when the parent theme updates. They can, however, override files in a child theme, and they are not as portable as a child-theme folder. Use a child when you want the design in version-controlled files.
Can I make a grandchild theme?
No. The Theme Handbook states that WordPress only supports two theme layers: parent and child. On block themes, the Site Editor’s user-customization layer can act a little like a third layer, but those changes live in the database, not in an installable theme.
Should I use a snippet plugin instead of a child theme?
A snippet plugin is fine for a small PHP tweak that is not tied to the theme. Use a child theme when the code should travel with the theme, when you need template or stylesheet files, or when you want a portable package. Avoid putting the same function in both places.
Does Blocksy need a child theme for Customizer changes?
Usually no. Creative Themes says Customizer and built-in Blocksy options already survive parent updates. Use the official Blocksy child theme when you need custom PHP, a stylesheet or file overrides, and copy options with Companion after you activate it, because Customizer settings are stored per theme.
Should you create a child theme?
Create one if you need custom PHP, a real stylesheet, template overrides, or a portable theme.json. Build it on staging, get the Template header right, and enqueue CSS only when the parent does not already load it.
Skip it if Additional CSS, the Site Editor or the theme’s own options already cover the change. On Blocksy, start from the official child zip only when you have file-level work to do, and copy options after you activate it.
If the child starts to replace half the parent, stop and consider a fork. A small child theme is a safety net. A huge one is a second theme you have to maintain.
Last updated November 2026.




