Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Rename sitewide page headers so “Blog” doesn't appear


PJ
Participant

@pjnu

function bpdev_blog_title($complete_title,$title_old)

{//hack page title for single article

global $bp,$current_blog,$post;

if ( bp_is_blog_page() ){

if ( is_single() ){

$title = __( $post->post_title, 'buddypress' );

if ( defined( 'BP_ENABLE_MULTIBLOG' ) ) {

$blog_title = get_blog_option( $current_blog->blog_id, 'blogname' );

} else {

$blog_title = get_blog_option( BP_ROOT_BLOG, 'blogname' );

}

return $blog_title . ' | ' . esc_attr( $title );

add_filter("bp_page_title", "bpdev_blog_title",10,2);

}

}

return $complete_title;

}

It reverts back to the old format for some reason.

Skip to toolbar