751 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
CyberShot says

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?

894 posts
  • Has sold $1,000+ on Envato Market
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
+5 more
infuse01 says
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.

751 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
CyberShot says

there must be something because the admin bar isn’t showing in my theme right now but the space for the bar is there.

894 posts
  • Has sold $1,000+ on Envato Market
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
+5 more
infuse01 says

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.

1479 posts The right tools with none of the gimmicks
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+6 more
PixelBin says

You need both the wp_head() and wp_footer() calls for it to display correctly, I think.

3344 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

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

751 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
CyberShot says

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.

302 posts mekshq.com
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Had an item featured in a magazine
  • Sells items exclusively on Envato Market
+5 more
meks says

Users -> All Users – > Your username -> Show Admin Bar (when viewing site, in dashboard) ...

Is this helpful ?

45 posts
  • Has collected 10+ items on Envato Market
  • Pulled off some great moustache to raise money or awareness for Movember Australia
  • Has been part of the Envato Community for over 2 years
  • Located in United States
premiumwd says

yes! :)

by
by
by
by
by
by