Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove Favorite button

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

    @tugamaster

    Anyone?

    Avatar 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.

    Avatar 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

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

    Avatar 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

    Hi,

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

    Thanks

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

    `

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

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

    Avatar 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)

You must be logged in to reply to this topic.