Last active
September 6, 2018 07:09
-
-
Save DiviThemeExamples/b3f913b75235687ee6a65cfcf320e4a5 to your computer and use it in GitHub Desktop.
Divi Child Theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_enqueue_scripts', 'my_enqueue_assets' ); | |
function my_enqueue_assets() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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