Skip to:
Content
Pages
Categories
Search
Top
Bottom

Rename "Groups" label on profile menu

Viewing 7 replies - 1 through 7 (of 7 total)
  • Avatar of JeffE
    JeffE
    Participant

    @jeffe

    Any ideas? This is a major point of confusion for my members.

    Avatar of jaynm26
    jaynm26
    Participant

    @jaynm26

    Hey Jeff, my concern is the same did you find a solution? I need to change the name of friends and groups and notifications

    Avatar of jaynm26
    jaynm26
    Participant

    @jaynm26

    Hey Jeff I see you successfully changed the name of groups is it possible you can help me out as well achive the same thing as you. I am trying to change the names of groups, and friends

    Avatar of JeffE
    JeffE
    Participant

    @jeffe

    @jaynm26 I still haven’t been able to change the Groups label on the profile page. I’ve used the .po file to change it just about everywhere else on the site, but this one place seems to be hard coded. I don’t know why the BuddyPress developers haven’t piped in on this.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Try this in bp-custom.php or your theme functions.php:

    
    function jeff_change_buddypress_profile_tabs( $translated, $original_text, $domain ) {
    
        if ( 'buddypress' !== $domain )  {
            return $translated; 
        }
    
        switch ( $original_text ) {
        
            case 'Groups <span>%d</span>':
                return 'Bongos <span>%d</span>';
    
            case 'Groups':
                return 'Bongos';
                
            default:
                return $translated;
        }
    }
    add_filter( 'gettext', 'jeff_change_buddypress_profile_tabs', 10, 3 );
    Avatar of JeffE
    JeffE
    Participant

    @jeffe

    @shanebp thanks for the tip, I tried it in both places and it still says Groups.

    Avatar of Morgan Kay
    Morgan Kay
    Participant

    @gwendydd

    I just figured out how to do this the other day and wrote a blog post about it:

    https://wpalchemists.com/2014/05/buddypress-translation-files/

    I hope that helps!

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

You must be logged in to reply to this topic.