Just to clarify what I meant was change the text “Sitewide Activity” above the activity page post box and also just below that have a function that would echo the users name. Example “Whats new John” John being being the current users name. Thank you!
Is there an answer to this question?
I would also like to change the heading text “Sitewide Activity” on the activity page.
I also like to change the text “sitewide activity”. Is it possible?
Here is how you change the “Sitewide Activity” text.
buddypress/bp-activity/bp-activity-screens.php – Line 384
Below is what Line 384 looks like. Just replace the ‘Sitewide Activity’ text with whatever you want it to say.
‘post_title’ => __( ‘Sitewide Activity’, ‘buddypress’ ),
@8rizzi’s solution worked for me on a site running BP 1.9.1. However, I cannot get that same solution to work on a site running BP 2.0.1.
In BP 2.0.1, line 384 now reads as: 'post_title' => bp_get_directory_title( 'activity' ),
So that line 384 is obviously different than it used to be.
Does anyone have a revised method for BP 2.0.1 that will allow me to change the “Sitewide Activity” text?
@SimpleOne I have the same problem. Does anyone could help us to change the text “sitewide activity” on the BP Version 2.0.1?
I really need to find a solution for the Activty text change ASAP.
I’m willing to pay $$ to the first person who can provide a working solution for BP 2.0.1 this week!
Try following line of code. Add it in functions.php in your theme.
add_filter( 'bp_get_directory_title', 'change_activity_title' );
function change_activity_title($data) {
if( $data == 'Sitewide Activity' ) {
$data = 'Name';
}
return $data;
}
Let me know whether it is works or not.
@sagarjadhav that worked perfectly. Thanks!!!
It’s work perfectly for me too! Thanks so much @sagarjadhav!!!