Created
February 3, 2016 14:01
-
-
Save fidlerryan/3c478b9b879a739dc2b4 to your computer and use it in GitHub Desktop.
Child Theme Stylesheet
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
add_action( 'wp_enqueue_scripts', 'my_enqueue_assets' ); | |
function my_enqueue_assets() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); | |
wp_register_style( 'child-style', get_stylesheet_directory_uri().'/style.css', array( 'parent-style' ) ); | |
wp_enqueue_style( 'child-style' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment