1

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?

3

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(); ?>
  • 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 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.