Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove Favorite button

Viewing 10 replies - 1 through 10 (of 10 total)
  • Profile photo of Carlos Faria
    Carlos Faria
    Participant

    @tugamaster

    Anyone?

    Profile photo of techguy
    techguy
    Participant

    @crashutah

    Look in your theme files and remove the reference to it. In a child theme it’s probably somewhere in the activity folder.

    Profile photo of footybible
    footybible
    Participant

    @footybible

    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

    Profile photo of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    As @crashutah said, in your child theme, override activity/entry.php and remove the appropriate line.

    Profile photo of footybible
    footybible
    Participant

    @footybible

    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

    Profile photo of guigoz
    guigoz
    Member

    @guigoz

    Hi,

    Is anyone knows how to remove “Favorite” tab on profile activity and general activity tab + menu in adminbar ?

    Thanks

    Profile photo of acaps2007
    acaps2007
    Member

    @acaps2007

    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=””>

    `

    Profile photo of acaps2007
    acaps2007
    Member

    @acaps2007

    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’ );
    `

    Profile photo of MikeMaguire420420
    MikeMaguire420420
    Participant

    @mikemaguire420420

    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;
    }

    Profile photo of Nexus66
    Nexus66
    Participant

    @nexus66

    Thanks mikemaguire420420
    Was facing a similar issue. Will try your idea.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Remove Favorite button’ is closed to new replies.
Skip to toolbar