Skip to content

Instantly share code, notes, and snippets.

@dividezigns
Last active May 6, 2018 05:10
Show Gist options
  • Save dividezigns/3381b7b2f0030a43cc9b1cbb197e3e23 to your computer and use it in GitHub Desktop.
Save dividezigns/3381b7b2f0030a43cc9b1cbb197e3e23 to your computer and use it in GitHub Desktop.
This code will load your child theme style.css file. Place this code in your child themes functions.php to Enqueue Child Theme.
<?php
add_action( 'wp_enqueue_scripts', 'my_child_theme_scripts' );
function my_child_theme_scripts() {
wp_enqueue_style( 'parent-theme-css', get_template_directory_uri() . '/style.css' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment