Merge branch 'grappler-child-theme-support'

This commit is contained in:
Philip Arthur Moore 2014-12-03 17:06:24 +07:00
commit 687e5e6e92
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.
*/
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 );