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!

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


Jamar Brown
Jamar Brown
679 Points

How to transfer WordPress Admin Bar "current user Avatar + dropdown menu" in header.php

Hi, I would like to transfer the users avatar and drop down menu functionalities to the header.php file so that I can disable the admin bar but have the functionality in the menu area of my website.

What I know so far: The "class-wp-admin-bar.php" file "see (line 436) renders the admin bar and I can see the functions that renders the user avatar and the "howdy" message.

I also know that the function "wp_footer()" located in the footer.php file, is a hook that activates the calls some function that renders the admin bar.

All i need is just the user profile menu as stated above to shop up in the header area of the theme with the functionalities it currently has.

Thanks in advance for your help.