LIMITED OFFER: Get All Themes Package [43 Themes] for only $99 View Details →

Related Docs

How to Create a Child Theme for a WPZOOM Theme

Child themes are used when you want to make changes to a site without actually changing the code or the files in your original theme. This lets you update your original theme (which is the engine behind the child theme) without losing any changes you made to your site.

IMPORTANT NOTICE
Even though using Child Themes is a recommended method to modify theme files, it’s your responsibility to keep it up-to-date and synced with the parent theme. A major update of the parent theme can easily break your website if you didn’t test your Child Theme against the new version on a local or staging environment before update.

There are a number of plugins out there these days that will help you create a child theme. We’ve found the Child Theme Configurator plugin to work well.

If you want to make just some small changes, like adding custom CSS code, we recommend to add it in the Customizer > Additional CSS. View instructions.

Custom functions can also be added without creating a Child Theme by using the My Custom Functions plugin.

Why use a Child Theme?

One of the most important reason of using Child Theme is that in this way you’ll be able to update your theme in the future without worrying that you’ll lose any of the modifications made in theme files.

Using a Child Theme you can safely modify your parent theme as you want: edit header.php or footer.php files, add custom functions in the functions.php file, add new theme files or page templates that will override existing ones from the parent theme.

If you are making extensive customizations – beyond styles and a few theme files – we highly recommend you to not update your parent theme anymore, as this can easily break your website if you don’t sync your Child Theme with the parent theme.

More information about working with Child Theme can be found here:

5 Excellent Uses for a Child Theme
WordPress Codex: Child Themes
How to make a child theme for WordPress


How to Create a Child Theme?

1. Install the Child Theme Configurator plugin and activate it.

2. Go to ToolsChild Themes menu and select the option to Create a New Child Theme.

3. Select the parent theme for which you want to create a Child Theme and click the Analyze button

4. IMPORTANT: Scroll to 6th step “Select Parent Theme stylesheet handling” and choose the second option: Use @import in the child theme stylesheet.

5. Scroll down at step #8, and check that option. This is useful if you already made some configurations in your current theme (widgets, menus, changes in Customizer, etc.), and you want to have these settings applied to the Child theme too.

6. Click on the Create New Child Theme button.

7. Now you can go back to the Themes pages and activate your new child theme.


How to copy files from Parent theme to Child theme

Changing functions or theme files from parent theme is easy using child themes.

Using the Child Theme Configurator plugin you can easily copy files you want to modify from your parent theme to the child theme. You can do that from the Files tab in the Child Themes page:

Once the files have been copied in the Child Theme, go to AppearanceEditor to edit them as you want.

⛔️ THEME LOOKS BROKEN AFTER ACTIVATING CHILD THEME?

If your theme looks broken after activating the new Child Theme, please add the following code in the “functions.php” file of your Child Theme:

 add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
 function enqueue_parent_styles() {
 wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
 }

The file can be edited from page Appearance > Editor.

Last updated on February 15, 2019
Have a suggestion?