Skip to:
Content
Pages
Categories
Search
Top
Bottom

remove “activity” tab from user profile

  • Avatar of mystica
    mystica
    Member

    @mystica

    Hi,
    i have bp 1.5 installed
    how can i remove the activity tab from the user profile page?
    thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Avatar of mystica
    mystica
    Member

    @mystica

    this made the trick

    function mj_remove_groups_nav() {
    bp_core_remove_nav_item( ‘activity’ );

    }
    add_action( ‘bp_setup_nav’, ‘mj_remove_groups_nav’, 15 );

    Avatar of mastermind12
    mastermind12
    Member

    @mastermind12

    Where would you place that snippet?

    thanks,

    Cal

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    You can add my plugin which allows you to remove, rearrange and rename tabs.

    http://wordpress.org/extend/plugins/buddypress-extended-settings/

    Avatar of catwomanbadkitty
    catwomanbadkitty
    Participant

    @catwomanbadkitty

    The above plugin does not exist and the code must be outdated.

    I am on Buddypress 1.8.1 and WordPress 3.6. I want to remove Activity from the member profile. I was able to style it out by placing the following into my childtheme CSS file:

    #user-activity {
    display: none;
    }

    I then made my Profile tab display first using the following in bp-custom.php:

    // define the profile tab that opens by default
    define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );

    So activity does not appear, however if you type in the URL: mysite/members/username/activity the Activity stream is still there.

    Any best practices for getting rid of Activity in the Profile.
    I also want to make changes to the main Activity stream and Group Activity stream so a point to good resources would be great.

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @catwomanbadkitty

    
    function bphelp_remove_activity_from_profile(){
    bp_core_remove_nav_item('activity');
    }
    add_action('bp_activity_setup_nav','bphelp_remove_activity_from_profile');
    
    Avatar of catwomanbadkitty
    catwomanbadkitty
    Participant

    @catwomanbadkitty

    Does that go into the functions.php in my child theme folder or the bp-custom.php in my plugins folder or does it matter?
    Thanks for your help!

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @catwomanbadkitty
    It really doesn’t matter but I tested it in bp-custom.php.

    Avatar of catwomanbadkitty
    catwomanbadkitty
    Participant

    @catwomanbadkitty

    Great! It worked like a charm.
    I will go and undo my work around and use your code instead.
    Thank you so much for helping me!

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

You must be logged in to reply to this topic.