This topic has 6 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #161148
     larandle
    Participant

    Hello,

    I wanted to find out how I would I be able to remove the text inside of the buttons on the activity stream “comment”, “favorite” and “delete” ?

    Attachments:
    You must be logged in to view attached files.
    #161351
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #161628
     Radu
    Moderator

    Hi,

    There you should override the buddypress tempalte frmo theme, just upload create entry.php file in child theme ( wp-content/themes/buddyapp-child/buddypress ) and paste this content in it https://pastebin.com/raw/HLxLjG8d

    And for the detelete butotn add this function in functions.php in child theme

    COPY CODE
    
    function bp_get_activity_delete_link_custom($link) {
    
        $url   = bp_get_activity_delete_url();
        $class = 'delete-activity';
    
        // Determine if we're on a single activity page, and customize accordingly.
        if ( bp_is_activity_component() && is_numeric( bp_current_action() ) ) {
            $class = 'delete-activity-single';
        }
    
        $link = '<a href="' . esc_url( $url ) . '" class="button item-button bp-secondary-action ' . $class . ' confirm" rel="nofollow">' . __( ' &nbsp; ', 'buddypress' ) . '</a>';
    
        /**
         * Filters the activity delete link.
         *
         * @since 1.1.0
         *
         * @param string $link Activity delete HTML link.
         */
        return  $link;
    }
    add_filter('bp_get_activity_delete_link','bp_get_activity_delete_link_custom');

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #161968
     larandle
    Participant

    I added the first code to the entry.php form and I got nothing. I added the second code to the functions.php file and the delete button was removed (that is what I wanted) Did I do something wrong with the first code. I added the entry.php code to the child theme but I had to create a buddypress folder because one did not exist.

    #161998
     Radu
    Moderator

    Sorry I’ve made a mistake, the entry.php file should be placed in

    wp-content/themes/buddyapp-child/buddypress/activity/

    Let me know

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #162064
     larandle
    Participant

    Am I suppose to create an activity folder?

    #162328
     Radu
    Moderator

    PATH : wp-content/themes/buddyapp-child/buddypress/activity/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?