Last active
September 16, 2015 07:36
-
-
Save jimmy89Li/d10e0d26c1af5bd500cf to your computer and use it in GitHub Desktop.
PHP code inside functions.php to load parent's style.css in a WordPress child theme
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', 'parent_style_enqueue' ); | |
function parent_style_enqueue() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment