Skip to content
wp-skills
Register
tools/wordpress-child-theme-generator

Child Theme Generator

Generate a child theme for WordPress. This tool will generate a child theme for WordPress with the given parameters.

The parent's display name. The child's own name is this with “Child” appended.

Shown under the theme on the Appearance screen.

The parent's folder name, not its display name — WordPress looks for a directory by this exact string, and Appearance says “The parent theme is missing” when it cannot find one.

The child's own version, not the parent's. It is also the ?ver= appended to this stylesheet.

Shown in the theme's details panel.

Linked from the author's name. Needs the scheme.

Conventionally the child's own folder name. Translations load against this, not the parent's domain.

style.css
/*
Theme Name: Your Child Theme
Template: parent-theme-folder-name
*/

/*
 * This file is style.css. A child theme also needs a functions.php that loads
 * the parent's stylesheet — @import in CSS is the old advice and is slower,
 * because the browser cannot start fetching the parent stylesheet until it has
 * parsed this one:
 *
 * add_action( 'wp_enqueue_scripts', function () {
 *     wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
 * } );
 *
 * Block themes that load styles through theme.json need neither.
 */