Skip to content

Instantly share code, notes, and snippets.

@DiviThemeExamples
Last active September 6, 2018 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DiviThemeExamples/b3f913b75235687ee6a65cfcf320e4a5 to your computer and use it in GitHub Desktop.
Save DiviThemeExamples/b3f913b75235687ee6a65cfcf320e4a5 to your computer and use it in GitHub Desktop.
Divi Child Theme
To create a child theme for Divi Theme (Elegant Themes) you will need the following 2 files
style.css
functions.php
Divi Child Theme zip available at https://www.divithemeexamples.com/bare-bones-divi-child-theme/
<?php
add_action( 'wp_enqueue_scripts', 'my_enqueue_assets' );
function my_enqueue_assets() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
/*
Theme Name: Bare bones for Divi
Author: Divi theme examples
Author URI: http://www.divithemeexamples.com
Template: Divi
Version: 1.0
*/
/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment