WordPress
WordPress child theme generator
Create a child theme for your existing WordPress theme. Review the files, download the ZIP and keep your customisations separate.
In this child theme generator you choose the parent theme folder and how the stylesheets load, check style.css, functions.php and the optional theme.json, then download a ZIP that is built in your browser and upload it under Appearance, Themes.
- Four stylesheet options
- Optional theme.json
- ZIP made in your browser
Free, no sign-up. It runs in your browser, so nothing you type is sent to this site.
Nothing you enter leaves your browser.
This tool runs in your browser and needs JavaScript. Turn JavaScript on and reload the page.
Child themes
Your child theme
Your ZIP will appear here
Complete the fields to see the files.
The ZIP is made in your browser and nothing is uploaded. It holds your child theme only. The parent theme is not included.
Your output will appear here
Complete the fields to generate valid output.
Check before activation
Using the child theme
Which stylesheet option should I choose?
WordPress has no single way every parent theme loads its CSS. Check the parent’s enqueue code or developer documentation, then pick the option that matches it.
- Child style.css only: the parent loads its own styles but not the child stylesheet. Also the right choice when adding CSS to a block child theme.
- Parent style.css only: for parents that load the active theme’s stylesheet with
get_stylesheet_uri(), which is what then loads the child stylesheet. The parent’s own style.css is added first, at priority 5. Parents that load their own file withget_template_directory_uri()and/style.css, such as Twenty Twenty-One, need “Child style.css only” with the parent handle (twenty-twenty-one-style) instead. With the wrong choice the parent CSS loads twice and the child CSS never loads. - Parent and child style.css: neither stylesheet is loaded yet. Confirm the parent’s real CSS lives in style.css, because many themes use other files.
- No extra stylesheet loading: the parent loads everything it needs, or a block child theme only needs theme.json changes.
The optional parent handle only applies to the child-only option. These choices cannot guarantee compatibility with every theme.
How do I install it?
- Back up the site and try the theme on a staging copy first.
- Install the parent theme and keep it installed. Use its exact folder name in the form.
- Download the ZIP. In WordPress, open Appearance, Themes, Add New, Upload Theme and choose the ZIP itself. It already holds the correctly named theme folder.
- Activate the child theme, then check the front end, the editor, menus, widgets and theme settings.
- Put your CSS in style.css and your PHP hooks in functions.php. Raise the version after changing CSS.
Activating a child theme does not move Customizer settings, an older child theme’s changes or Site Editor changes stored in the database. Uploading a ZIP with the same folder name can replace an existing child theme’s files, so back them up first.
What you can do
-
Parent folder, child theme name and details
-
Four ways to load the stylesheets
-
style.css, functions.php and readme.txt
-
Optional theme.json and custom CSS
-
File previews and a ZIP built in your browser
How to create a WordPress child theme
-
Name the parent theme
Check the parent theme is installed and enter its exact folder name, then set the child theme name, folder and version.
-
Choose how styles load
Pick the stylesheet option that suits the parent theme, add CSS or theme.json if you need them, and review every file in the preview.
-
Install and test
Download the ZIP, upload it in Appearance, Themes, Add New, Upload Theme, and test activation and styling on a staging site first.
Keep theme customisations in their own files
This free child theme generator builds and previews the files of a WordPress child theme in your browser. Enter the exact parent folder and your theme details, then choose how the stylesheets load. The ZIP is made in your browser too, so the files are never sent to this site.
Know the limits
The parent theme is not included. This tool cannot look at your installed parent, prove the child theme works with it, or move existing Customizer and Site Editor settings. Choose the stylesheet option after checking the parent's documentation or code. The ZIP is a starting point without parent templates, a screenshot or licence text.
Features that should keep working when you change themes belong in a starter plugin instead. To find which theme a site uses, try the WordPress theme and plugin detector.
Read the WordPress guides to child themes and theme headers for more detail.
Frequently asked questions
How do I create a child theme in WordPress?
A child theme needs a folder with a style.css whose Template line names the parent theme’s folder, and usually a functions.php that loads the stylesheets. This generator writes both and zips them. Upload the ZIP, then activate the child theme.
How should a child theme load the parent stylesheet?
Load it from functions.php with wp_enqueue_style. Using @import in style.css is the old method and is slower. The generator offers four loading options and explains each one.
Do block themes need a child theme?
Not always. Changes made in the Site Editor are saved in the database. A child theme is still useful for your own theme.json, templates, PHP or CSS that should survive parent updates.
Can I make a child theme of a child theme?
No. WordPress supports one level: a child theme and its parent.
Related tools
-
wp-config.php
Generate a wp-config.php with database settings, new salt keys and explained options.
-
PHP extensions
Plan PHP extensions, PHP-FPM and OPcache settings for WordPress.
-
Theme and plugin checker
Detect the WordPress theme and plugins a public site uses.
-
Cron jobs
Build a cron job with explained fields and the next ten run times.
-
Plugins
Generate a WordPress starter plugin with headers, a namespace and an optional settings page.