From 58111f9cde0e26bba872577d845adc1bd655598b Mon Sep 17 00:00:00 2001 From: Ulrich Pogson Date: Sun, 2 Nov 2014 22:14:05 +0100 Subject: [PATCH] Load parent styles when child theme is activated --- functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions.php b/functions.php index 537ff627..897dd56c 100644 --- a/functions.php +++ b/functions.php @@ -92,6 +92,10 @@ add_action( 'widgets_init', '_s_widgets_init' ); * Enqueue scripts and styles. */ 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_script( '_s-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );