Re: Move Login Fields into Buddybar (Adminbar)
Here’s the code I put in bp-custom.php (if you don’t have a bp-custom.php file already, create it and put it in the plugins directory)
<?php bp_login_bar() ?>
add_action( 'bp_adminbar_menus', 'my_login_bar', 100 ); ?>
Also, if the CSS for the search/login bar isn’t in your bp-core/css directory, you may want to copy it from your bphome theme (not all of the css, just the part that relates to the search-login bar).
Also, the number 70 you see above determines the location of the menu item on the adminbar. The random menu on the far right is 100. I got rid of that random menu and that’s why I used 100 in my code.
Hope this helps. You’ll probably need to tinker around with it to get your location just, so, but it’s a start.
All the best to you!