Offer just one header, the BS top navbar

This commit is contained in:
Ben Word
2014-03-31 20:14:33 -05:00
parent be14fdb69c
commit b4c7b9b4b2
5 changed files with 15 additions and 33 deletions

View File

@@ -5,7 +5,6 @@
add_theme_support('soil-clean-up'); // Enable clean up from Soil
add_theme_support('soil-relative-urls'); // Enable relative URLs from Soil
add_theme_support('soil-nice-search'); // Enable /?s= to /search/ redirect from Soil
add_theme_support('bootstrap-top-navbar'); // Enable Bootstrap's top navbar
add_theme_support('bootstrap-gallery'); // Enable Bootstrap's thumbnails component on [gallery]
add_theme_support('jquery-cdn'); // Enable to load jQuery from the Google CDN

View File

@@ -80,7 +80,7 @@ function roots_nav_menu_args($args = '') {
$roots_nav_menu_args['items_wrap'] = '<ul class="%2$s">%3$s</ul>';
}
if (current_theme_supports('bootstrap-top-navbar') && !$args['depth']) {
if (!$args['depth']) {
$roots_nav_menu_args['depth'] = 2;
}