Skip to:
Content
Pages
Categories
Search
Top
Bottom

remove “activity” tab from user profile

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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 );


    mastermind12
    Member

    @mastermind12

    Where would you place that snippet?

    thanks,

    Cal


    modemlooper
    Moderator

    @modemlooper

    You can add my plugin which allows you to remove, rearrange and rename tabs.
    https://wordpress.org/extend/plugins/buddypress-extended-settings/


    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.


    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');
    

    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!


    bp-help
    Participant

    @bphelp

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


    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)
  • The topic ‘remove “activity” tab from user profile’ is closed to new replies.
Skip to toolbar