Last active
October 6, 2015 10:17
-
-
Save mjangda/2978185 to your computer and use it in GitHub Desktop.
Properly queueing parent and child style.css, props Viper007Bond
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
<?php | |
add_action( 'wp_enqueue_scripts', function() { | |
wp_register_style( 'parent-theme', get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'child-theme', get_stylesheet_uri(), array( 'parent-theme' ) ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment