Yep, still works. I assume we\’re talking about the \’buddypress\’ graphic in the top-left of the \’buddybar\’.

In my theme\’s functions.php:

remove_action( \'bp_adminbar_logo\', \'bp_adminbar_logo\' );

And in my CSS:

#wp-admin-bar ul { margin-left: 0 !important; }

If that doesn\’t work before you, it\’s because you\’re putting it in the wrong file. If you\’ve got it in bp-custom.php, then it\’s getting read before the buddybar menu items are created internally – therefore it doesn\’t remove them as it needs to happen afterwards.

Burt Adsit has a suggestion on the Trac for a bp-custom-after.php which would be an appropiate place for this sort of override. In the interim, I suggest you make a file \’z-custom.php\’ in /mu-plugins/ and put the above line in.

I just wanted to mention that adding the
#wp-admin-bar ul { margin-left: 0 !important; }
line of code to my stylesheet, killed the flyout menus on my custom buddypress admin bar links.. Just wanted to mention it here, as I couldn’t find it anywhere else on the next. so, basically, adding a 0 margin-left to wp-admin bar ul, will kill the fly out, sideways, sub-sub page, or grand child pages on the buddypress admin bar.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘remove_action( ‘bp_adminbar_logo’, ‘bp_adminbar_logo’ ); not working in RC2?’ is closed to new replies.