General Question

manuel_alarcon's avatar

Wordpress: why does actions bar disappear on public site?

Asked by manuel_alarcon (299points) March 18th, 2014
3 responses
“Great Question” (1points)

Hi, I was developing themes in WP 3.4 and 3.8, and the actions bar, that shows up on top of the public site when logged in, disappears, and leaves this weird blank space. I´ve checked the code with several themes and several wp sites on my server, but can’t find out how to get the bar back on top… any ideas?

Observing members: 0
Composing members: 0

Answers

Response moderated
funkdaddy's avatar

Do you have a link?

WordPress puts a margin on the html element to make room for the bar, and then drops the bar at the end of your footer with fixed position. It only carries a single #id of “weight” (#wpadminbar).

If you have a rule in your footer that is overriding that fixed position (setting it to absolute, relative, or static), or a script running that does the same, that would explain why the space is there, but no bar, and that would be the best initial guess.

Barring that, make sure you’re using wp_footer in your footer template to close everything out.

manuel_alarcon's avatar

Thanks!! I’ve forgotten to use wp_footer. The top bar appeared instantly! :)

Answer this question

Login

or

Join

to answer.

Mobile | Desktop


Send Feedback   

`