Bootstraps fixed navbar hides admin bar
Permalink 1 user found helpful
Hey guy,
the site I'm building right now makes use of Bootstraps horizontal navbar which is a sticky navigation and fixed top (.navbar-fixed-top). The problem is: it hides my admin navbar so I'm not able to do stuff like pushing the 'Edit' button because it's just not visible.
I found out that something like this might help:
<body <?php if ($c->isEditMode()) { ?> class="editmode" <?php } ?>>
But I didn't get a solution that really worked - any ideas how to solve this?
the site I'm building right now makes use of Bootstraps horizontal navbar which is a sticky navigation and fixed top (.navbar-fixed-top). The problem is: it hides my admin navbar so I'm not able to do stuff like pushing the 'Edit' button because it's just not visible.
I found out that something like this might help:
<body <?php if ($c->isEditMode()) { ?> class="editmode" <?php } ?>>
But I didn't get a solution that really worked - any ideas how to solve this?
Hey,
thanks for the answer, sounds like a great idea! Where do I have to place this snippet?!
thanks for the answer, sounds like a great idea! Where do I have to place this snippet?!
Absolutely brilliant! Thank you very much! Works great!
well, now from one moment to another the dropdown menu stopped working... wtf
This will switch out the fixed nav bar for a non fixed one when an Administrator is logged in.
Cheers,
Anthony