751 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • United States
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
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Grew a moustache for the Envato Movember competition
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
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • United States
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
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Grew a moustache for the Envato Movember competition
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.

1478 posts The right tools with none of the gimmicks
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • United States
+1 more
PixelBin says

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

3192 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
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
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • United States
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.

274 posts mekshq.com
  • Elite Author
  • Has been a member for 4-5 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Europe
  • Bought between 1 and 9 items
  • Referred between 50 and 99 users
  • Envato Studio (Microlancer) Beta Tester
meks says

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

Is this helpful ?

45 posts
  • Grew a moustache for the Envato Movember competition
  • Bought between 10 and 49 items
  • Has been a member for 2-3 years
  • United States
premiumwd says

yes! :)

by
by
by
by
by
by