From c444314d67460814d5f387b9f77d4d53dca2af37 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sun, 23 Jun 2013 12:24:02 -0500 Subject: [PATCH] Close #789 - Don't automatically enqueue style.css for child themes --- lib/scripts.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/scripts.php b/lib/scripts.php index d2e0610..2449414 100644 --- a/lib/scripts.php +++ b/lib/scripts.php @@ -6,7 +6,6 @@ * 1. /theme/assets/css/bootstrap.css * 2. /theme/assets/css/bootstrap-responsive.css * 3. /theme/assets/css/app.css - * 4. /child-theme/style.css (if a child theme is activated) * * Enqueue scripts in the following order: * 1. jquery-1.10.1.min.js via Google CDN @@ -19,11 +18,6 @@ function roots_scripts() { wp_enqueue_style('roots_bootstrap_responsive', get_template_directory_uri() . '/assets/css/bootstrap-responsive.css', array('roots_bootstrap'), null); wp_enqueue_style('roots_app', get_template_directory_uri() . '/assets/css/app.css', false, null); - // Load style.css from child theme - if (is_child_theme()) { - wp_enqueue_style('roots_child', get_stylesheet_uri(), false, null); - } - // jQuery is loaded using the same method from HTML5 Boilerplate: // Grab Google CDN's latest jQuery with a protocol relative URL; fallback to local if offline // It's kept in the header instead of footer to avoid conflicts with plugins.