Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Rename BuddyPress Profile Nav Items


  • LavishDhand
    Participant

    @lavishdhand

    Hi!

    My WordPress version is : 4.5.3
    My BuddyPress version is : 2.6.1.1

    I have been trying to find a way to change the names / text of at least 2 BuddyPress member profile menu items.

    I want to change ‘Friends’ to ‘Connections’ and ‘Groups’ to ‘Clubs’.

    I tried using poedit with the latest pot file from BP 2.6 and translated all occurrences of ‘Friends’ and ‘Groups’ but it is still not working.

    translations

    All translations other than profile nav items are working fine. I also tried changing the language in WordPress settings, still no avail.

    Kindly help me

    Many thanks

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

  • danbp
    Participant

    @danbp

    Is your custom language file in the correct folder ?
    wp-content/languages/buddypress/buddypress-en_US.mo

    Could also be your theme who contains some BP elements ?

    Or you can also try what is indicated here:

    Navigation API


    LavishDhand
    Participant

    @lavishdhand

    Thank you @danbp 🙂 Navigation API has helped me. Following code worked.

    function bpcodex_rename_profile_tabs() {
    
    buddypress()->members->nav->edit_nav( array( ‘name’ => __( ‘Connections’, ‘textdomain’ ) ), ‘connections’ );
    buddypress()->members->nav->edit_nav( array( ‘name’ => __( ‘Clubs’, ‘textdomain’ ) ), ‘clubs’ );
    
    }
    add_action( ‘bp_actions’, ‘bpcodex_rename_profile_tabs’ );

    LavishDhand
    Participant

    @lavishdhand

    Hello @danbp

    Is there a way to change the sub slugs too? What I mean is, for example club settings (manage >> settings) has a URL – mysite-com/clubs/club-name/admin/group-settings/ I expect this to become mysite-com/clubs/club-name/admin/club-settings/

    Thank you

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