Skip to:
Content
Pages
Categories
Search
Top
Bottom

Rename "Groups" label on profile menu

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

  • JeffE
    Participant

    @jeffe

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


    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


    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


    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.


    shanebp
    Moderator

    @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 );

    JeffE
    Participant

    @jeffe

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


    Morgan Kay
    Participant

    @gwendydd

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

    Using BuddyPress Language Files to Customize Headers and Messages

    I hope that helps!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Rename "Groups" label on profile menu’ is closed to new replies.
Skip to toolbar