Skip to:
Content
Pages
Categories
Search
Top
Bottom

remove_action( ‘bp_adminbar_logo’, ‘bp_adminbar_logo’ ); not working in RC2?

Viewing 6 replies - 1 through 6 (of 6 total)
  • @burtadsit

    Participant

    Where is your remove_action() call running in RC2? There is a filter now that might work better unless you are hooking up other menu items there also.

    apply_filters( ‘bp_admin_bar_logo_src’ …

    @cawoodm

    Participant

    I agree, remove_action( ‘bp_adminbar_logo’, ‘bp_adminbar_logo’ ); is not working in the latest BP. This must be a bug.

    @cawoodm

    Participant

    Sadly, neither is this:

    apply_filters( ‘bp_admin_bar_logo_src’, ‘my_admin_bar_logo_src’);

    function my_admin_bar_logo_src($a) {return ‘/blank.gif’;}

    @djpaul

    Keymaster

    It work fine for me, I got this working earlier. I will check when I get home that we are not talking about different logos and post the code here.

    @djpaul

    Keymaster

    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.

    @erikshosting

    Member

    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.
Skip to toolbar