WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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(); ?>
share|improve this answer
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 '11 at 2:13
Right on, good to know. Instinct told me you needed both, but I wasn't certain :) – mfields Jun 23 '11 at 2:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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