Skip to main content

Stop WordPress admin bar overlapping your Navbar in Bootstrap

If you’re using bootstrap in your WordPress theme and you’re using a fixed top menu, you’ll notice when you’re logged into WordPress as as administrator that your admin bar overlaps your page menu. It doesn’t affect your visitors, but for anyone administrators logging in, it can make it look untidy.

navbar

Applying the below code will immediately fix your problem using CSS!

Use the below code and add it to your stylesheet to fix the problem with CSS!

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