Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 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

 
discard

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.