Skip to:
Content
Pages
Categories
Search
Top
Bottom

Please help me remove the Friends tab


  • Colourscope
    Participant

    @colourscope

    Hi,
    Can anyone give me the code to just simply remove the Friends tab which goes on display in the Profiles of BuddyPress, ie. where you have Activity | Notifications | Messages | Friends.

    I just want to hide the Friends tab so it’s gone/invisible but cannot see how and old scripts on this forum don’t work.

    Thanks,
    Andy

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

  • shanebp
    Moderator

    @shanebp

    Did you try:

    function cs_remove_friends_nav() {
       bp_core_remove_nav_item( bp_friends_slug() );
    }
    add_action( 'bp_setup_nav', 'cs_remove_friends_nav' );

    Colourscope
    Participant

    @colourscope

    No, I just pasted the above code into my functions.php of the child theme (Sweetdate) and it just showed the word ‘friends’ in the top-left corner.


    Colourscope
    Participant

    @colourscope

    Can you let me know where I need to paste that code you suggested, please?

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