Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress From Bootstrap to WordPress Setup a Bootstrap Theme Creating Bootstrap Navigation in WordPress

Sarah Hantaah
Sarah Hantaah
1,540 Points

admin bar

I'm making this theme but I don't have any bar yet I want one. I did a search in functions.php and did not find this function so I added it like this but still now admin bar appears:

/**

  • Admin Bar. */ add_filter( 'show_admin_bar', '__return_true' );

3 Answers

Sarah Hantaah
Sarah Hantaah
1,540 Points

I see what's happening now. I was getting confused with the the get_footer and wp_footer. I thought I only needed get_footer in index.php so I added the wp_footer in footer.php and it's working.

:)

Tiffany McAllister
Tiffany McAllister
25,806 Points

Great, I'm glad to hear you got it working :)

Tiffany McAllister
Tiffany McAllister
25,806 Points

Have you added wp_head(); before the closing head tag and wp_footer(); before the closing body tag?

Sarah Hantaah
Sarah Hantaah
1,540 Points

Just checked. Yes I have the wp_head(); in index.php and the wp_footer(); in the footer.php too

http://awesomescreenshot.com/03c56aie74

and

http://awesomescreenshot.com/0ee56aif12