Add ability to include header without top navbar

This commit is contained in:
Ben Word
2012-05-09 01:28:39 -06:00
parent 7d2b3c1e07
commit f1ff5204a3
6 changed files with 47 additions and 20 deletions

View File

@@ -611,6 +611,14 @@ function roots_clean_style_tag($input) {
return '<link rel="stylesheet" href="' . $matches[2][0] . '"' . $media . '>' . "\n";
}
function roots_body_class_filter($classes) {
if (current_theme_supports('bootstrap-top-navbar')) {
$classes[] = 'top-navbar';
}
return $classes;
}
add_filter('body_class', 'roots_body_class_filter');
function roots_body_class() {
$term = get_queried_object();

View File

@@ -4,6 +4,7 @@ add_theme_support('root-relative-urls');
add_theme_support('rewrite-urls');
add_theme_support('h5bp-htaccess');
add_theme_support('bootstrap-responsive');
add_theme_support('bootstrap-top-navbar');
// Set the content width based on the theme's design and stylesheet
if (!isset($content_width)) { $content_width = 940; }