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());
|
||||
|
||||
Reference in New Issue
Block a user