Skip to:
Content
Pages
Categories
Search
Top
Bottom

Editing or customizing the buddypress admin toolbar


  • sherissa_r
    Participant

    @sherissa_r

    Hi, I’ve been searching all day and have not found a good tutorial on how to edit the Buddypress /WP admin toolbar in the top right-hand corner.
    Is this the only tutorial available?

    Modifying the Toolbar

    I would like to change the labels for some of the menu items.
    e.g. Forums to Discussions
    Friends to Network
    Groups to My Groups
    Courses to My Courses

    Thank you in advance if you’re able to guide me to a tutorial on how to do this using bp-custom.php or my child theme’s function.php

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

  • shanebp
    Moderator

    @shanebp

    If you just want to change labels, you should use a language file.

    Another approach, put in your bp-custom.php :

    function sr_gettext_with_context( $translated, $text, $context, $domain ) {
    
         if ( 'buddypress' !== $domain )
            return $translated;
    
         switch ( $text ) {
            
            case 'Friends':
                return 'Network';
                
            case 'Groups':
                return 'My Groups';            
                
            default:
                return $translated;
        }
    
        return $translated;
    }
    add_filter( 'gettext_with_context', 'sr_gettext_with_context', 51, 4 );

    sherissa_r
    Participant

    @sherissa_r

    Thanks for this.

    What is the easiest way to hide the Dashboard menu item from the Buddypress Toolbar? See sceenshot.
    https://goo.gl/photos/rBL773gvzsKhTsiVA


    shanebp
    Moderator

    @shanebp

    afaik, the Dashboard link is added by your theme.
    You should ask BuddyBoss about it.
    It probably is only visible to site admins.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar