En la carpeta themes de tu WordPress, tendrás una carpeta llamada Divi, además de otras posibles de otros temas ya instalados.

Crea una nueva carpeta ahí llamada Divi child o el nombre que quieras ponerle.

Crea dos archivos dentro de dicha carpeta: style.css y functions.php

Contenido para style.css

/*
Theme Name: Divi Child Theme
Theme URI: http://yourwebsite.com
Description: Child Theme For Divi
Author: Your Name
Author URI: http://yourwebsite.com
Version: 1.0.0
Template: Divi
*/

Contenido para functions.php

<?php
/*================================================
#Load the Parent theme style.css file
================================================*/
function dt_enqueue_styles() {
	$parenthandle = 'divi-style'; 
	$theme = wp_get_theme();
	wp_enqueue_style( $parenthandle, get_template_directory_uri() . '/style.css', 
		array(),  // if the parent theme code has a dependency, copy it to here
		$theme->parent()->get('Version')
	);
	wp_enqueue_style( 'child-style', get_stylesheet_uri(),
		array( $parenthandle ),
		$theme->get('Version') 
	);
}
add_action( 'wp_enqueue_scripts', 'dt_enqueue_styles' );

Activa el nuevo theme

Una vez tengas ambos archivos en el servidor, ve al Administrador de WordPress, y en Apariencia, Temas, te aparecerá el nuevo tema hijo. Solo queda que lo actives.

A tener en cuenta

  • En principio, toda configuración que tuviera el tema padre, se traslada al tema hijo, por lo que no habría problema.
  • Lo que sí habría problema sería cualquier modificación hecha en el código del tema padre, que cuando éste se actualice se perdería. Por eso se crean temas hijos, para que las modificaciones de código se hagan en el tema hijo y no en el padre.