This topic has 3 replies, 2 voices, and was last updated 7 years by Radu.

  • Author
  • #132549
     larandle
    Participant

    Hi,

    For some reason I can’t seem to remember how I customized the labels on the profile side bar menu. ie-Activity, notifications, messages, groups etc.

    I want to change the name of a few on the labels in this profile sidebar menu. Could you help me remember where and how to do this please.

    Thank you so much

    #132714
     Radu
    Moderator

    Hi,

    Using the next function you can manipulate the titles of the components that appear in the bp user menu.

    COPY CODE
    
    
    function rename_bp_tabs() {
        global $bp;
        $bp->bp_nav['notifications']['name'] = 'RE-Notifications';
        $bp->bp_nav['messages']['name'] = 'RE-Messages';
        $bp->bp_nav['groups']['name'] = 'RE-GRoups';
    }
    add_action( 'bp_init', 'rename_bp_tabs');
    
    

    If you want to rename and another component just add after

    $bp->bp_nav[‘groups’][‘name’] = ‘RE-GRoups’;

    From example :
    $bp->bp_nav[‘profile’][‘name’] = ‘My profile’;

    the function will be added to wp-content/themes/kleo-child/functions.php

    Note: Child theme needs to be installed and activated.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solution
    #133196
     larandle
    Participant

    Thank you. It worked perfectly!

    #133212
     Radu
    Moderator

    No problem

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Theme options & Demo content’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?