Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom BuddyBar logo – need to remove get_blog_option( bp_get_root_blog_id(), 'blogname' )

  • I created a custom filter for my BuddyBar though not having a function to work with,
    eg: $BuddyBar_logo = '<a href="' . bp_get_root_domain() . '" id="admin-bar-logo">' . get_blog_option( bp_get_root_blog_id(), 'blogname' ) . '</a>';

    I don’t know how to remove the initial echo in $bp_adminbar_logo

    // **** Custom BuddyPress admin bar logo ********
    function custom_adminbar_logo() {
    
    echo '<a href="' . bp_get_root_domain() . '" id="admin-bar-logo"><img src="' . get_stylesheet_directory_uri() . '/_inc/images/custom_logo.png" alt="logo" /></a>';
    
    }
    add_filter ( 'bp_adminbar_logo' ,'custom_adminbar_logo' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • *cant edit the post? anyways..

    If someone could help me to understand how to remove it, will be greatful

    came right using remove_action( 'bp_adminbar_logo', 'bp_adminbar_logo' );

    the problem was I was trying to remove the logo via remove_action('bp_adminbar_menus', 'bp_adminbar_logo');

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom BuddyBar logo – need to remove get_blog_option( bp_get_root_blog_id(), 'blogname' )’ is closed to new replies.
Skip to toolbar