Open rakeshtembhurne opened 12 years ago
The workaround is to move the admin bar to the bottom: http://wordpress.org/extend/plugins/stick-admin-bar-to-bottom/ (plugin) and http://wpengineer.com/2190/move-wordpress-admin-bar-to-the-bottom/ (code)
You can try add
body.admin-bar .navbar { top: 28px }
to style.css
this seems not work with Bootswatch
you can go to Dashboard>users>admin(or whatever you are) and uncheck show toolbar when viewing site. It will only be around in the dashboard area
Any thoughts on combining the two?
Realize that these come from two different layers of code, but a double nav bar is poor UI.
Try this css, it fixed the issue for me.
.navbar-fixed-top { top: 0px; }
body.admin-bar .navbar-fixed-top { top: 28px !important; }
bassscape; worked right away for my custom theme as well - thanks! :+1:
didnt work for me... :-1:
and dont forget to add this code on the body tag <body <?php body_class(); ?>>
@bassscape worked for me too! ty
@bassscape thank you it worked
<?php if (is_admin_bar_showing()): ?>
<style>
.fixed-top{
top: 32px;
}
</style>
<?php endif ?>
for bootstrap 4
Logged in users does not see theme's navbar. Need a way to always display theme's navbar.