Bootstrap fixed navbar fix for WordPress admin bar

When you are using Bootstrap fixed navbar on your themes, it will be hidden under admin bar of WordPress. This is because of fixed positioning of two elements are same.

If you are not using admin bar, it is easy to fix, because you can hide admin bar from your own user profile. But other users may not know how to do this. So I suggest using the following navbar fix for wordpress admin bar. Just put the code on your theme stylesheet:

.admin-bar .navbar-fixed-top {
    top: 32px;
}

For more wordpress tips or bootstrap tips, subscribe to our newsletter.

Related Posts

NS Weight Release

WP-Backgrounds Lite by InoPlugs Web Design and Juwelier Schönmann 1010 Wien