buddypress.org is open source so feel free to check out the theme’s code.
Open Sourcing BuddyPress.org
Can you please point me to the code and where I need to put it on my site?
Is this the code I need? If so, can you please help me understand where it goes?
<ul id="wp-admin-bar-top-secondary" class="ab-top-secondary ab-top-menu">
<li id="wp-admin-bar-my-account" class="menupop with-avatar"><a class="ab-item" aria-haspopup="true" href="https://buddypress.org/login/" title="My Account">Anonymous<img alt="" src="https://secure.gravatar.com/avatar/?s=16&d=mm&r=g" srcset="https://secure.gravatar.com/avatar/?s=32&d=mm&r=g 2x" class="avatar avatar-16 photo avatar-default" height="16" width="16"></a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-user-actions" class="ab-submenu">
<li id="wp-admin-bar-user-info"><a class="ab-item" tabindex="-1" href="https://buddypress.org/login/"><img alt="" src="https://secure.gravatar.com/avatar/?s=64&d=mm&r=g" srcset="https://secure.gravatar.com/avatar/?s=128&d=mm&r=g 2x" class="avatar avatar-64 photo avatar-default" height="64" width="64"><span class="display-name">Anonymous</span><span class="username">Not Logged In</span></a> </li>
<li id="wp-admin-bar-register"><a class="ab-item" href="https://buddypress.org/register/">Register</a> </li>
<li id="wp-admin-bar-lost-pass"><a class="ab-item" href="https://buddypress.org/lost-password/">Lost Password</a> </li>
<li id="wp-admin-bar-login"><a class="ab-item" href="https://buddypress.org/login/">Log In</a> </li></ul></div> </li></ul>