Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  •  bradh
    Participant

    Reflect Growth, the following code is an update to your fix that includes a dynamic call…

    COPY CODE
    /* BuddyPress & bbPress: Page Title fix */
    add_filter( 'bp_modify_page_title', 'my_page_title', 10);
    add_filter('bbp_title', 'my_page_title');
    function my_page_title( $title) {
        return $title.' ' .get_bloginfo( 'name', 'display' );
    }
     bradh
    Participant

    Sorry, correction listed below…

    COPY CODE
    /* BuddyPress & bbPress: Page Title fix */
    add_filter( 'bp_modify_page_title', 'my_page_title', 10); // Works for BP pages fine :)
    add_filter('bbp_title', 'my_page_title'); // Doesn't work for BB pages :(
    function my_page_title( $title) {
        
        return $title.' Reflect Growth'; // TODO: Change to dynamic WP func call.
    }
     bradh
    Participant

    Reflect Growth, the following code will correct your issue for bbPress pages…

    COPY CODE
    /* BuddyPress & bbPress: Page Title fix */
    add_filter( 'bp_modify_page_title', 'my_page_title', 10); // Works for BP pages fine :)
    add_filter('bb_title', 'my_page_title'); // Doesn't work for BB pages :(
    function my_page_title( $title) {
        
        return $title.' Reflect Growth'; // TODO: Change to dynamic WP func call.
    }
Viewing 3 posts - 1 through 3 (of 3 total)

Log in with your credentials

Forgot your details?