751 posts
  • 6 Years of Membership
  • Affiliate Level 1
  • Collector Level 2
  • Exclusive Author
+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?

905 posts
  • Author Level 3
  • Affiliate Level 1
  • Collector Level 2
  • 4 Years of Membership
+4 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
  • 6 Years of Membership
  • Affiliate Level 1
  • Collector Level 2
  • Exclusive Author
+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.

905 posts
  • Author Level 3
  • Affiliate Level 1
  • Collector Level 2
  • 4 Years of Membership
+4 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
  • Affiliate Level 4
  • Author Level 7
  • Beta Tester
  • Collector Level 2
+7 more
PixelBin
says

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

3439 posts
  • Author Level 4
  • Collector Level 2
  • Community Superstar
  • United States
+2 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
  • 6 Years of Membership
  • Affiliate Level 1
  • Collector Level 2
  • Exclusive Author
+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.

310 posts mekshq.com
  • Featured Author
  • Trendsetter
  • Weekly Top Seller
  • Elite Author
+7 more
meks
says

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

Is this helpful ?

45 posts
  • Collector Level 2
  • Mo Bro
  • 3 Years of Membership
  • United States
premiumwd
says

yes! :)

by
by
by
by
by
by