Web-Server

How To Create a Divi Child Theme

Author Karl
7 August, 2025 | 3 weeks

Customizing your WordPress site with the Divi theme is powerful, but making changes directly to the core theme files can risk losing your hard work during updates. That’s where a Divi child theme comes in, a safe, reliable way to tailor your site’s design and features without worrying about future updates overwriting your customizations. In this guide, you’ll learn exactly how to set up a Divi child theme step by step, ensuring your modifications remain secure and your site remains uniquely yours.

Key Takeaway:

Creating a Divi child theme allows you to safely customize your WordPress site without losing changes during updates to the Divi parent theme. It involves setting up a child theme folder, adding a style.css file, and linking it to the parent theme. Using a child theme ensures your customizations are preserved and easily managed.

What Is a Divi Child Theme and Why Use It?

A Divi child theme is a sub-theme that inherits all the functionality of the Divi theme, but allows you to override and extend it without modifying the core theme files directly. The key benefit of using a child theme for Divi is that it allows you to customize the theme without risking your changes being overwritten when Divi updates.

When you make changes to a WordPress theme directly, those changes are stored in the parent theme files. However, when the parent theme is updated, all of your modifications can be lost. With a child theme, the updates to the parent theme will not affect your customizations, as the child theme’s files (such as the style.css file and functions.php) are separate from the core theme files. This means that using a child theme is the safest and most efficient way to customize Divi while ensuring that your changes remain intact during future theme updates.

Setting Up a Divi Child Theme: The Essentials

Before diving into the process of creating a Divi child theme, it’s important to understand the basic structure. You will need to create a child theme folder in the theme directory of your WordPress site, where you will store the child theme’s stylesheet (style.css) and the functions.php file. The parent theme (Divi) will remain intact, and the child theme will extend it.

The child theme folder will contain two essential files:

  • style.css: The stylesheet for your child theme, which tells WordPress the details about the theme and contains custom CSS.
  • functions.php: A file that allows you to add custom PHP functions, like enqueuing the parent theme’s styles.

Step-by-Step Guide to Creating a Divi Child Theme

Step 1: Create the Child Theme Folder

The first step in creating a child theme for Divi is to create a new folder in the wp-content/themes directory of your WordPress website. You can name the folder something like divi-child to keep things clear.

Inside the child theme folder, you will store the style.css and functions.php files. Be sure to create a folder structured correctly, as WordPress will need it to recognize the child theme properly.

Step 2: Add the style.css File

In the newly created child theme folder, create a file named style.css. This file is essential because it provides WordPress with the necessary theme information.

Here is an example of what you should include in the style.css file:

/* Theme Name: Divi Child Theme Template: Divi Author: Your Name Author URI: https://yourwebsite.com Theme URI: https://www.elegantthemes.com/gallery/divi/ Description: A child theme for Divi Version: 1.0 */ /* Add your custom CSS below */

The Template line must match the folder name of the parent theme (in this case, Divi). The style.css file is also where you can begin adding custom CSS to modify the appearance of your site.

Step 3: Create the functions.php File

Next, create a functions.php file inside the child theme’s folder. This file is used to add PHP functions and personalization. The most important function you’ll need in this file is one that tells WordPress to load the parent theme’s stylesheet. Here’s the code to add:

<?php function divi_child_theme_styles() { wp_enqueue_style( ‘divi-parent-style’, get_template_directory_uri() . ‘/style.css’ ); } add_action( ‘wp_enqueue_scripts’, ‘divi_child_theme_styles’ );

This code ensures that the Divi parent theme’s stylesheet is loaded before your child theme’s stylesheet. Without this, your child theme would not inherit the styles from the Divi theme.

Customizing the Divi Child Theme

Step 4: Upload the Child Theme to WordPress

Once the child theme folder is created and the necessary files are added, you’ll need to zip the folder and upload it to your WordPress site. To do this:

  • Go to your WordPress dashboard.
  • Navigate to Appearance > Themes.
  • Click Add New, then Upload Theme.
  • Choose the zip file of your Divi child theme and click Install Now.
  • After installation, activate the child theme.

Once the theme is activated, you will be able to customize it using the Divi Builder, apply custom CSS, and make modifications to the functions.php file.

Customizing the Divi Child Theme

Now that your child theme is set up, you can begin customizing your Divi theme. You can:

  • Add custom CSS in the style.css file to change the layout, typography, colors, etc.
  • Modify the functions.php file to add custom functionality, like custom widgets or new shortcodes.
  • Use the WordPress Customizer to tweak the theme options and apply visual customizations.
  • Make use of the Divi Builder to design pages and layouts, ensuring that any changes are stored in your child theme.

Alternative Method: Using a Plugin to Create a Child Theme

If you prefer not to manually create a Divi child theme, you can use a plugin like Child Theme Configurator. This free plugin simplifies the process, automatically generating the necessary style.css and functions.php files. It’s an excellent option for those who want to quickly set up a child theme without needing to touch the code.

The plugin guides you through setting up a child theme, from creating the folder to uploading the theme. It’s a great way to speed up development time and ensure your customizations remain intact during Divi updates.

Conclusion

Creating a Divi child theme is a crucial step for anyone who wants to customize their WordPress site using Divi. It allows you to make modifications without affecting the core Divi theme files and ensures that your changes won’t be lost when the parent theme is updated. By following this step-by-step guide, you can easily create a child theme for Divi, add custom CSS, and take full advantage of Divi’s powerful builder. Whether you’re using PHP or relying on the Child Theme Configurator plugin, using a child theme is a great way to safely and efficiently customize your WordPress theme.

Launch Your Web-Server

Experience Today

Get started and see what effortless Hosting really means with webserver.

Launch Your Web-Server

Experience Today

Get started and see what effortless Hosting really means with webserver.

Launch Your Web-Server

Experience Today

Get started and see what effortless Hosting really means with webserver.

Join Our Newsletter to
Shape Web Success.

Profile Picture

Marc Schiwek

Founder

Reliable Hosting, Real Support

    Profile Picture

    Marc Schiwek

    Founder

    © 2025 Web-server. All rights reserved.
    © 2025 Web-server. All rights reserved.
    Our Payment Methods
    payment_method

    The WordPress® trademark is the intellectual property of the WordPress Foundation, and the Woo® and WooCommerce® trademarks are the intellectual property of WooCommerce, Inc. Uses of the WordPress®, Woo®, and WooCommerce® names in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation or WooCommerce, Inc. Web-Server is not endorsed or owned by, or affiliated with, the WordPress Foundation or WooCommerce, Inc.