Static top navbar instead of fixed
This change allows us to simplify the code in both app.css and cleanup.php
This commit is contained in:
@@ -99,12 +99,6 @@ add_filter('style_loader_tag', 'roots_clean_style_tag');
|
||||
* Add and remove body_class() classes
|
||||
*/
|
||||
function roots_body_class($classes) {
|
||||
// Add 'top-navbar' class if using Bootstrap's Navbar
|
||||
// Used to add styling to account for the WordPress admin bar
|
||||
if (current_theme_supports('bootstrap-top-navbar')) {
|
||||
$classes[] = 'top-navbar';
|
||||
}
|
||||
|
||||
// Add post/page slug
|
||||
if (is_single() || is_page() && !is_front_page()) {
|
||||
$classes[] = basename(get_permalink());
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
add_theme_support('root-relative-urls'); // Enable relative URLs
|
||||
add_theme_support('rewrites'); // Enable URL rewrites
|
||||
add_theme_support('h5bp-htaccess'); // Enable HTML5 Boilerplate's .htaccess
|
||||
add_theme_support('bootstrap-top-navbar'); // Enable Bootstrap's fixed navbar
|
||||
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('nice-search'); // Enable /?s= to /search/ redirect
|
||||
|
||||
|
||||
Reference in New Issue
Block a user