Click Here to download the Divi-child.zip file. The following are the code snippets for the respective files so you can recreate them yourself. The functions file includes the style.css files from both the parent and child theme. It also gets the current time stamp from the child's style.css file and uses that for the version number so when you update the child's style sheet it updates so your browsers cache will not bring in an older version.
/* Theme Name: Divi Child Theme Description: Divi Child Theme Author: Greg Whitehead Author URI: http://wpcms.ninja Template: Divi Version: 1.0.1 */ /* =Theme customizations ------------------------------------------------------- */
<?php if (!function_exists('enqueue_divi_child_theme_styles') ) { function enqueue_divi_child_theme_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css', false, filemtime( get_stylesheet_directory() . '/style.css' ), 'all' ); wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style'), filemtime( get_stylesheet_directory() . '/style.css' ), 'all' ); } add_action( 'wp_enqueue_scripts', 'enqueue_divi_child_theme_styles' ); } add_action( 'wp_print_styles', 'et_deregister_styles', 20 ); function et_deregister_styles() { wp_dequeue_style( 'divi-style' ); }