Guide to create child themes.
Consider creating a child theme if you want to modify your WordPress theme significantly: rebuild theme CSS and extend the functions.php file. Child theme is a good solution to keep your changes even if you update the parent theme.
To create a child WordPress theme, in admin panel:
- Go to Plugins > Add New.
- In the Search Plugins text box, type in Child Theme Configurator and hit enter.
- Click Install Now in the plugin’s combo box.
- Once the plugin installs, click Activate Plugin.
- Go to Tools > Child Themes.
- Select a Parent Theme from the list, and click Analyze.
- Once the theme is successfully analyzed, specify the name of the new theme directory.
- Select where to save new styles:
- Primary Stylesheet (style.css) - save new custom styles directly to the Child Theme primary stylesheet, replacing existing values. The primary stylesheet will load in the order set by the theme.
- Separate Stylesheet - save new custom styles to a separate stylesheet and use any existing child theme styles as a baseline. Select this option if you want to preserve the original child theme styles instead of overwriting them. This option also allows you to customize stylesheets that load after the primary stylesheet.
- Select Parent Theme stylesheet handling:
- Use the WordPress style queue - let the Configurator determine the appropriate actions and dependencies and update the functions file automatically.
- Use @import in the child theme stylesheet - only use this option if the parent stylesheet cannot be loaded using the WordPress style queue. Using @import is not recommended.
- Do not add any parent stylesheet handling - select this option if this theme already handles the parent theme stylesheet or if the parent theme’s style.css file is not used for its appearance.
- Customize the Child Theme Name, Description, Author, Version, etc. (Click to toggle form).
- Copy Parent Theme Menus, Widgets and other Customizer Settings to Child Theme. NOTE: This will overwrite any child theme options you may have already set.
- Click the Create New Child Theme button to run the Configurator. Once the child theme’s created, you can:
- CONFIGURE an existing Child Theme - set up a previously installed child theme for use with the Configurator or to modify current settings.
- DUPLICATE an existing Child Theme - make a complete copy of an existing Child Theme in a new directory, including any menus, widgets and other Customizer settings. The option to copy the Parent Theme settings is disabled with this action.
- RESET an existing Child Theme (this will destroy any work you have done in the Configurator) - revert the Child theme stylesheet and functions files to their state before the initial configuration or last reset.