Giter Site home page Giter Site logo

Comments (12)

mahmudinm avatar mahmudinm commented on July 28, 2024 5
	<?php if (is_admin_bar_showing()): ?>
		<style>
			.fixed-top{
				top: 32px;
			}
		</style>
	<?php endif ?>

for bootstrap 4

from wordpress-bootstrap.

bassscape avatar bassscape commented on July 28, 2024 2

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.

GerritKuilder avatar GerritKuilder commented on July 28, 2024

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.

tobiasrobinson avatar tobiasrobinson commented on July 28, 2024

You can try add

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

to style.css

from wordpress-bootstrap.

flyabroad avatar flyabroad commented on July 28, 2024

this seems not work with Bootswatch

from wordpress-bootstrap.

MrNagoo avatar MrNagoo commented on July 28, 2024

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.

EliezerIsrael avatar EliezerIsrael commented on July 28, 2024

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.

Hansaplast avatar Hansaplast commented on July 28, 2024

bassscape; worked right away for my custom theme as well - thanks! 👍

from wordpress-bootstrap.

oweibor avatar oweibor commented on July 28, 2024

didnt work for me... 👎

from wordpress-bootstrap.

raidenz avatar raidenz commented on July 28, 2024

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

from wordpress-bootstrap.

schurpf avatar schurpf commented on July 28, 2024

@bassscape worked for me too! ty

from wordpress-bootstrap.

ihabhamed avatar ihabhamed commented on July 28, 2024

@bassscape thank you it worked

from wordpress-bootstrap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.