In this short tutorial, you will learn how to install a child theme in Divi. The same procedure is needed if you are going to use other WordPress theme.

Watch this video first:

In the video there are 3 files, 1 is functions.php, 1 style.css, and an image for the theme.

So first, open a Notepad, then copy the code below:

Here’s the code needed for the functions.php

<?php
function my_theme_enqueue_styles() { 
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );


//add new code here

Save it as functions.php

Then open the notepad again (you can actually use other Text Editors) and copy and modify the code below:

/*
 Theme Name:     The Disciplers Divi Child
 Theme URI:      https://thedisciplers.com
 Description:    Divi Child Theme customised by WordPress Medics
 Author:         WordPress Medics
 Author URI:     https://www.wordpressmedics.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* Theme customization starts here
------------------------------------------------------- */

You can basically customize all the details here since you are now the new author of this new Child Theme.

Save it as style.css.

Put it in the folder together with your premade image for the theme.

Compress the file and make a zip file.

Upload the Parent theme, in this case the Divi theme and activate it.

Once uploaded, upload the zip file that you made and activate it.

NOTE: Your Child theme won’t activate unless the parent theme has been activated first.