WP Admin Bar Not Showing

I recently made a new theme and somehow, there seems to be a blank space at the very top of the page. I then realized that's where the WordPress Administrator Bar used to go and now it's missing. I noticed how an excess blank space was there when I'm logged in but displays perfectly fine when I'm not.

Basically, the error lies by not calling the Footer function.

Go to your footer.php and just before </body>, type in:

<?php wp_footer(); ?>

Turns out the footer carries the function to display the wp admin bar. So refresh and you should be good.

Hope that helps!

Other posts you might like:

5 Comments

  1. Duane . April 28, 2011 @ 10:09 pm

    Thank you so much for this. I just couldn’t figure out what was wrong with this theme. I updated from WordPress 3.0.1 to 3.1.2. I guess the theme was badly built.

    Thanks again :)

  2. Ken . April 29, 2011 @ 1:19 am

    No problem, Duane. Glad it helped out :)

  3. gindi . May 23, 2011 @ 10:34 pm

    thanks m8

    this problem with driven me crazy but never thought the solution will be in calling this footer function

    thanks for the help

  4. Jean . February 12, 2012 @ 2:46 am

    What if the code IS in the footer php just about the /body?

    I purchased my theme and it is always updated. I went and checked for the code just in case and it is there.

    Hosting provider said all WP files are functioning correctly.

    Any ideas? I’d love to get this fixed.

    Thank you

  5. Ken . February 13, 2012 @ 9:58 am

    @jean I’m not sure what the error on your side is, considering how the fix to the error is putting the code in and you just said that the code is indeed there

RSS feed for comments on this post. TrackBack URL

Leave a comment

Connect with Facebook