This topic has 4 replies, 3 voices, and was last updated 10 years by SQadmin.

  • Author
  • #1452
     mcgreggor
    Participant

    Hi,

    I’ve added a couple of tabs next to profile as explained in this thread. I don’t want al that information repeated below. Is there a way to disable the profile tab below the profile image?

    Of course, logged in users should still be able to edit their profile fields.

    Thanks
    Mcgreggor

    #1521
     SQadmin
    Keymaster

    Hi,
    This snippet added to sweetdate-child/functions.php should do the trick:

    COPY CODE
    
    function my_remove_profile_nav() {
    	global $bp;
        if (!bp_is_my_profile()) {
            bp_core_remove_nav_item( 'profile' );
        }
    
    }
    add_action( 'bp_setup_nav', 'my_remove_profile_nav' );
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #1664
     mcgreggor
    Participant

    Perfect. Thank you!

    #2128
     Ishanna
    Participant

    Hi!

    I saw this topic and tried the snippet but it did not work for me. Instead I get a blank main section when visiting other profile except my own. How can this be fixed?

    https://archived.seventhqueen.com/forums/topic/disable-profile-tab-below-profile-image

    #2140
     SQadmin
    Keymaster

    If you disabled the Profile page, then it won’t be reachable. Normally when you are viewing a profile, the default active tab is the Activity tab.

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?