From 5c5cabb3d7762f3bae80c7baa8f6d8df1f6c7412 Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Sat, 30 Jul 2011 13:00:58 -0600 Subject: [PATCH] Child theme update: loads roots style.css THEN child theme style.css + some cleanup - fixes #103 --- inc/roots-actions.php | 8 ++++++-- inc/roots-cleanup.php | 3 +-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/inc/roots-actions.php b/inc/roots-actions.php index b03ca66..3004590 100644 --- a/inc/roots-actions.php +++ b/inc/roots-actions.php @@ -73,7 +73,6 @@ function roots_get_stylesheets() { global $roots_options; $roots_css_framework = $roots_options['css_framework']; - $template_uri = get_template_directory_uri(); $styles = ''; if ($roots_css_framework === 'blueprint') { @@ -101,7 +100,12 @@ function roots_get_stylesheets() { $styles .= "\t\n"; } - $styles .= stylesheet_link_tag('/style.css', 1); + if (is_child_theme()) { + $styles .= stylesheet_link_tag('/style.css', 1); + $styles .= "\t\n"; + } else { + $styles .= stylesheet_link_tag('/style.css', 1); + } if ($roots_css_framework === 'blueprint') { $styles .= "\t\n"; diff --git a/inc/roots-cleanup.php b/inc/roots-cleanup.php index 5df1a56..84a27b2 100644 --- a/inc/roots-cleanup.php +++ b/inc/roots-cleanup.php @@ -1,7 +1,6 @@