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 );
Where would you place that snippet?
thanks,
Cal
You can add my plugin which allows you to remove, rearrange and rename tabs.
https://wordpress.org/extend/plugins/buddypress-extended-settings/
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.
@catwomanbadkitty
function bphelp_remove_activity_from_profile(){
bp_core_remove_nav_item('activity');
}
add_action('bp_activity_setup_nav','bphelp_remove_activity_from_profile');
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!
@catwomanbadkitty
It really doesn’t matter but I tested it in bp-custom.php.
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!