forked from mirror/_s
Load parent styles when child theme is activated
This commit is contained in:
parent
964c19070f
commit
58111f9cde
|
@ -92,6 +92,10 @@ add_action( 'widgets_init', '_s_widgets_init' );
|
||||||
* Enqueue scripts and styles.
|
* Enqueue scripts and styles.
|
||||||
*/
|
*/
|
||||||
function _s_scripts() {
|
function _s_scripts() {
|
||||||
|
if ( is_child_theme() ) {
|
||||||
|
wp_enqueue_style( '_s-parent-style', get_template_directory_uri() . '/style.css' );
|
||||||
|
}
|
||||||
|
|
||||||
wp_enqueue_style( '_s-style', get_stylesheet_uri() );
|
wp_enqueue_style( '_s-style', get_stylesheet_uri() );
|
||||||
|
|
||||||
wp_enqueue_script( '_s-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
|
wp_enqueue_script( '_s-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
|
||||||
|
|
Reference in New Issue