How do I change/remove page title?


#1

Hi to all at the Brilliant RTCAMP … quick Q, how do i change or remove the page title as seen in attached screenshot - I would like to rename Site-Wide Activity to News Feed?


#2

Hello Gregmc,

You can add following lines of code in functions.php in your child theme.

// Change activity title
add_filter( 'bp_get_directory_title', 'rtp_change_activity_title', 999 );

function rtp_change_activity_title( $title ) {
    if ( $title == __( 'Site-Wide Activity', 'InspireBook' ) ) {
        $title = __( 'News Feed', 'InspireBook' );
    }
    return $title;
}

Let me know if this helps you. :smile:


#3

Worked like a dream - Thank YOU !!! :slight_smile:


#4

You are welcome :smile:


#5

Perfect!.. thank you also!


#6

You are welcome :slight_smile:


#7