Merge branch 'child-theme-support' of github.com:grappler/_s into grappler-child-theme-support

This commit is contained in:
Philip Arthur Moore 2014-12-03 17:00:09 +07:00
commit c000d6489a
1 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,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 );