-
Author
-
May 11, 2017 at 21:46 #161148larandleParticipant
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.May 15, 2017 at 00:00 #161351LauraModeratorHello, 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 solutionLaura 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 🙂
May 16, 2017 at 18:10 #161628RaduModeratorHi,
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 CODEfunction 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">' . __( ' ', '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 solutionMay 18, 2017 at 18:42 #161968larandleParticipantI 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.
May 18, 2017 at 20:25 #161998RaduModeratorSorry 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 solutionMay 22, 2017 at 18:36 #162328RaduModeratorPATH : 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 -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.