I have made a few themes and some I have started over to try out different coding methods. I have noticed that sometimes the admin bar does not show up but I do not know why it doesn’t. What is it in the theme that calls the admin bar?
CyberShot said
I have made a few themes and some I have started over to try out different coding methods. I have noticed that sometimes the admin bar does not show up but I do not know why it doesn’t. What is it in the theme that calls the admin bar?
As far as I now its nothing theme specific rather core specific. Not the Theme calls the Admin Bar – its simple the Wordpress Core itself.
there must be something because the admin bar isn’t showing in my theme right now but the space for the bar is there.
may you have some css which hides the bar, but not the space? do you have a live demo of it so may I can help you to figure the issue out? Otherwise I’m quite sure that there is nothing you can call from within a theme. I have made some themes and never came across such a behaviour.
You need both the wp_head() and wp_footer() calls for it to display correctly, I think.
if the themes are on different installs theres a setting via users to turn it off. and its a 28px shift so it can be fixed with css by adding the WordPress body class, I believe theres the default class is admin-bar
I have it working on one theme. I took those files out to recode it and was adding the header code in and noticed that the admin header didn’t show. That lead me to wonder how the admin header is called. wp_head(); must not do it all on it’s own. I put the files back and now it is working. It would be good to figure out this puzzle.
- Has been a member for 2-3 years
- Sold between 5 000 and 10 000 dollars
- Europe
- Bought between 1 and 9 items
- Referred between 1 and 9 users
- Microlancer Beta Tester
- Exclusive Author
Users -> All Users – > Your username -> Show Admin Bar (when viewing site, in dashboard) ...
Is this helpful ?
yes! 
