Hi,
try this snippet (add it to bp-custom.php or child theme’s functions.php):
function garfrey_widget_title( $title ) {
if ( $title == "Members") {
$title = __('Members Translation') ; // foreign char. here
}
return $title;
}
add_filter ( 'widget_title' , 'garfrey_widget_title', 21 );
Reference:
https://codex.wordpress.org/Plugin_API/Filter_Reference/widget_title
Hi danbp thank you for helping ,
I had put your script into bp-custom.php, but not working .
any mistake i had made ?
function garfrey_widget_title( $title ) {
if ( $title == "Members") {
$title = __('新加入会员') ; // foreign char. here
}
return $title;
}
add_filter ( 'widget_title' , 'garfrey_widget_title', 21 );
Thank you.
Hi danbp , its working ! thanks =D