Adding the Admin Bar to a page with a custom template

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&#

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?

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 asked Jun 23, 2011 at 1:22 dthrasherdthrasher 1251 silver badge5 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 4

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744581950a4582089.html

相关推荐

  • Adding the Admin Bar to a page with a custom template

    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&#

    2天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信