All tools
WordPress tools

Child Theme Generator

Enter a theme name and parent slug — download a ready-to-upload .zip with a properly structured style.css and functions.php in seconds.

style.css header functions.php Parent enqueue Download as .zip Astra, Divi, Kadence Any parent theme
Get started free Sign in

Free · No credit card · 50 credits/day

What's inside the generated zip

File Required What it does
style.css Yes Contains the required header block with Theme Name, Template (parent slug), Version and Text Domain. Add your CSS overrides below the header.
functions.php No Enqueues the parent stylesheet via wp_enqueue_style() — the correct method. Also the place to add PHP hooks, filters and custom functions.
screenshot.png No Optional 1200×900 px thumbnail shown in Appearance → Themes. The generator includes a placeholder if you need it.
template files No Any WordPress template (single.php, page.php, archive.php, header.php, footer.php) placed here overrides the parent theme's version.

Frequently asked questions

What is a WordPress child theme?

A sub-theme that inherits all functionality, features and styling of a parent theme. Lets you customize design and functionality without modifying parent theme files. When the parent updates, your customizations are preserved. Child themes are the recommended way to customize any WordPress theme.

What files does a child theme need?

Minimum: style.css with a header block including Template: {parent-slug}. In practice most include style.css (required header + CSS overrides) and functions.php (to enqueue parent stylesheet + PHP customizations). Optionally any template files you want to override (single.php, page.php, header.php, etc.).

How do I find the parent theme slug for my child theme?

The parent theme slug is the folder name inside /wp-content/themes/. Examples: Astra → "astra", GeneratePress → "generatepress", Kadence → "kadence", Divi → "Divi" (capital D, case-sensitive). Find it via hosting file manager, Appearance → Themes details URL (?theme=slug), or SSH: ls /wp-content/themes/

Do I need to enqueue the parent theme stylesheet in my child theme?

Yes. Use wp_enqueue_style() in functions.php — not @import in style.css (which makes two HTTP requests). The generator creates: add_action("wp_enqueue_scripts", function() { wp_enqueue_style("parent-style", get_template_directory_uri() . "/style.css"); }); This ensures parent styles load before your child theme overrides.

Related WordPress tools

More tools for WordPress theme development.

Theme & Plugin Detector

Detect the parent theme slug from any live WordPress site.

Slug Generator

Generate the correct WordPress slug from any theme name.

wp-config.php Generator

Generate a hardened wp-config.php for your site.

Customize any WordPress theme safely

Free account. 50 credits per day. Access to 75+ tools instantly.

Create free account →