Skip to content

Instantly share code, notes, and snippets.

@fidlerryan
Created February 3, 2016 14:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fidlerryan/3c478b9b879a739dc2b4 to your computer and use it in GitHub Desktop.
Child Theme Stylesheet
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