Look in your theme files and remove the reference to it. In a child theme it’s probably somewhere in the activity folder.
Can anyone direct what code needs to be stripped out to remove the ‘favorite’ functionality? I think this would be a really useful guide to have. Thanks
As @crashutah said, in your child theme, override activity/entry.php and remove the appropriate line.
Hi @DJPaul
I removed the following line from entry.php
<a href="” class=”fav” title=””>
<a href="” class=”unfav” title=””>
This has removed the button from the activity stream but the tab on user profiles is still there? Cheers
Hi,
Is anyone knows how to remove “Favorite” tab on profile activity and general activity tab + menu in adminbar ?
Thanks
I’d like help with this one too… any ideas?
I just removed this code from entry.php and the “favorite” option is still next to each post… Shouldn’t it be gone?
`
<a href="” class=”fav” title=””>
<a href="” class=”unfav” title=””>
`
Edit. I just removed the following code from ajax.php and the “favorite” button is still there. Why won’t it die?
`break;
case ‘favorites’:
$feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG . ‘/favorites/feed/’;`
`* AJAX mark an activity as a favorite */
function bp_dtheme_mark_activity_favorite() {
global $bp;
bp_activity_add_user_favorite( $_POST );
_e( ‘Remove Favorite’, ‘buddypress’ );
}
add_action( ‘wp_ajax_activity_mark_fav’, ‘bp_dtheme_mark_activity_favorite’ );
/* AJAX mark an activity as not a favorite */
function bp_dtheme_unmark_activity_favorite() {
global $bp;
bp_activity_remove_user_favorite( $_POST );
_e( ‘Favorite’, ‘buddypress’ );
}
add_action( ‘wp_ajax_activity_mark_unfav’, ‘bp_dtheme_unmark_activity_favorite’ );
`
you can just choose not to display it using css.
add this to your custom css file
.fav{
display:none;
}
#activity-favs{
display:none !important;
}
Thanks mikemaguire420420
Was facing a similar issue. Will try your idea.