arnabwahid / wordpress-bootstrap

Bootstrap in WordPress theme form - Bootstrap 3.3.1
1.49k stars 556 forks source link

Bootstrap navbar hides due to WordPress Admin Bar #29

Open rakeshtembhurne opened 12 years ago

rakeshtembhurne commented 12 years ago

Logged in users does not see theme's navbar. Need a way to always display theme's navbar.

GerritKuilder commented 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)

tobiasrobinson commented 12 years ago

You can try add

body.admin-bar .navbar { top: 28px }

to style.css

flyabroad commented 12 years ago

this seems not work with Bootswatch

MrNagoo commented 12 years ago

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

EliezerIsrael commented 12 years ago

Any thoughts on combining the two?

Realize that these come from two different layers of code, but a double nav bar is poor UI.

bassscape commented 12 years ago

Try this css, it fixed the issue for me.

.navbar-fixed-top { top: 0px; }
body.admin-bar .navbar-fixed-top { top: 28px !important; }
Hansaplast commented 11 years ago

bassscape; worked right away for my custom theme as well - thanks! :+1:

oweibor commented 11 years ago

didnt work for me... :-1:

raidenz commented 11 years ago

and dont forget to add this code on the body tag <body <?php body_class(); ?>>

schurpf commented 10 years ago

@bassscape worked for me too! ty

ihabhamed commented 9 years ago

@bassscape thank you it worked

mahmudinm commented 6 years ago
    <?php if (is_admin_bar_showing()): ?>
        <style>
            .fixed-top{
                top: 32px;
            }
        </style>
    <?php endif ?>

for bootstrap 4