I created a stripped-down page template to use for my landing pages. But I must have cut too much out of it, because I've lost the WordPress 3.1+ Admin Bar.

What functions do I need to call to get the Admin Bar to appear at the top of the page again?

1 Answer 1


Not sure exactly, but adding the following two functions should get it to work and save you other headaches as well:

Right before the closing head tag add:

<?php wp_head(); ?>

And right before the closing body tag add:

<?php wp_footer(); ?>
  • 1
    That did the trick. You need both wp_head() and wp_footer() in order to get the Admin Bar to appear. Thanks!
    – dthrasher
    Jun 23, 2011 at 2:13
  • 1
    Right on, good to know. Instinct told me you needed both, but I wasn't certain :)
    – mfields
    Jun 23, 2011 at 2:14
  • this is great .. thats worked for me but styles distroyed all my menus disappered after those two changes Dec 30, 2019 at 20:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.