Skip to content

Instantly share code, notes, and snippets.

@jillmugge
Last active October 13, 2016 15:04
Show Gist options
  • Save jillmugge/68d766d27fb1b2c2270f8d53db9bce6a to your computer and use it in GitHub Desktop.
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/..
<?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: 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