Comments (12)
<?php if (is_admin_bar_showing()): ?>
<style>
.fixed-top{
top: 32px;
}
</style>
<?php endif ?>
for bootstrap 4
from wordpress-bootstrap.
Try this css, it fixed the issue for me.
.navbar-fixed-top { top: 0px; }
body.admin-bar .navbar-fixed-top { top: 28px !important; }
from wordpress-bootstrap.
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)
from wordpress-bootstrap.
You can try add
body.admin-bar .navbar {
top: 28px
}
to style.css
from wordpress-bootstrap.
this seems not work with Bootswatch
from wordpress-bootstrap.
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
from wordpress-bootstrap.
Any thoughts on combining the two?
Realize that these come from two different layers of code, but a double nav bar is poor UI.
from wordpress-bootstrap.
bassscape; worked right away for my custom theme as well - thanks! 👍
from wordpress-bootstrap.
didnt work for me... 👎
from wordpress-bootstrap.
and dont forget to add this code on the body tag
<body <?php body_class(); ?>>
from wordpress-bootstrap.
@bassscape worked for me too! ty
from wordpress-bootstrap.
@bassscape thank you it worked
from wordpress-bootstrap.
Related Issues (20)
- Javascript Live Reload
- Main site down HOT 1
- Cannot access global $wp_query;
- Can't make it work on windows+wamp HOT 2
- Font Awesome not working HOT 8
- Drop down menu isn't working HOT 2
- Nav Item > Child > Child does not open on click HOT 5
- Is development on this theme dead? HOT 22
- Keeping npm and bower up to date HOT 2
- Can use this themes in shared hosting ? (cant npm) HOT 3
- How to Change default boostrap theme to bootswatch cyborg
- Importing Custom fonts in theme
- Wrong call for previous and next posts link in index.php
- Where Are [caption] tags being stripped put
- Limited number of Menus
- I recommend moving to this project
- second level menu not working HOT 2
- Demo Not Working
- collapsed menu
- I'd like to update the versions and documentation HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-bootstrap.