Hi Tosin,
You may use the following css#activity-follow{ display:none;}
If that does not work(may happen for some theme) you will need to ad the !important flag to enforce it.
Regards
BrajeshYou may use the following code(Please test as I haven’t tested)
add_action( 'bp_follow_activity_loaded', function () { $bp = buddypress(); if ( empty( $bp->follow ) || empty( $bp->follow->activity ) || empty( $bp->follow->activity->module ) ) { return; } if ( ! method_exists( $bp->follow->activity->module, 'add_activity_directory_tab' ) ) { return; } remove_action( 'bp_before_activity_type_tab_favorites', array( $bp->follow->activity->module, 'add_activity_directory_tab' ) ); } );
Regards
BrajeshHave you put the code in bp-custom.php? It won’t work from your theme’s functions.php
I will be testing later today after installing the plugin.Regards
brajeshHi Tosin,
I have checked it and it is working properly by removing the tab in Nouveau and legacy both.You probably have some other code causing it. I will suggest liming the custom code to above snippet and disabling all plugins except BuddyPress, BuddyPress Follow and trying with default WordPress theme.
Regards
Brajesh
You must be logged in to reply to this topic.