Re: Rename sitewide page headers so “Blog” doesn't appear
ahh alright, you are either missing the one or the other. hmm.. I think, I should have pasted both the piece of code together.
Well, here it goes, and I hope, this must work
add_filter("bp_page_title", "bpdev_blog_title",10,2);
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 );
}
}
return $complete_title;
}
Please use the complete code and put it into your bp-custom.php. let me know If it still does not work.