Close #789 - Don't automatically enqueue style.css for child themes
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user