Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add a link to Friends Tab subnav

  • @funmi-omoba

    Participant

    Hi,

    can someone please help me out with a code to add a link to friends tab subnav.

    I have a page on my site named videos so i want to add a link to that video page, where it says: Friendships Requests.

    Am using latest WordPress and Buddypress 1.7.1

    thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • @chouf1

    Participant

    And no theme ?

    @funmi-omoba

    Participant

    sorry @chouf1,

    Am using Buddypress default theme (child theme)

    @funmi-omoba

    Participant

    Polite Bump

    @shanebp

    Moderator

    Try this in plugins/bp-custom.php

    https://gist.github.com/shanebp/5561044

    @funmi-omoba

    Participant

    @shanebp, you are beautifully good, I used the code in functions.php of my child theme and it works great.

    Thanks for been a blessing to BP community.

    Regards

    @funmi-omoba

    Participant

    @shanebp,

    Thanks for your help on this topic, I just noticed that the link also visible while viewing the friends tab subnav of your friends.

    How can I stop this, I want it to show on my profile alone and not while viewing my friends profile.

    Note: i use the link on profile tab

    Best regards

    @naijaping

    Participant


    @funmi-omoba
    , you can stop the problem by adding the following code in that subnav code

    'user_has_access' => ( bp_is_my_profile() || is_super_admin() ),

    Naijaping

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to add a link to Friends Tab subnav’ is closed to new replies.
Skip to toolbar