Last active
October 13, 2016 15:04
-
-
Save jillmugge/68d766d27fb1b2c2270f8d53db9bce6a to your computer and use it in GitHub Desktop.
Adding a Child Theme to Divi style.css and functions.php. Add a child folder in /wp-content/themes/..
This file contains hidden or 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 hidden or 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: My Divi Child Theme | |
Theme URI: http://mydomain.com/ | |
Version: 1.0 | |
Description: A customized version of Divi which adds a number of tiny features I need. | |
Author: Your Name | |
Author URI: http://www.yourwebsite.com | |
Template: Divi | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment