Skip to content

Instantly share code, notes, and snippets.

@AJ-Acevedo
Last active April 25, 2017 00:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save AJ-Acevedo/6643788 to your computer and use it in GitHub Desktop.
Save AJ-Acevedo/6643788 to your computer and use it in GitHub Desktop.
WordPress 3.6 and Bootstrap 3 Admin bar overlap fix
// This fixes the WordPress admin-bar 28px overlap issue with Bootstrap 3.
body.admin-bar .navbar {
position:fixed;
top: 28px;
z-index: 1000;
height: 40px;
// If the above does not work try this if your nav is wrapped in .header
body.admin-bar .header {
position:fixed;
top: 28px;
z-index: 1000;
height: 40px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment