Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

@sbrajesh

Participant

Th plugin mentioned above is for wpmu in subdirectory install.

for your proble, here is a little hacked code of bp_page_title , It will rewrite the title of single article only.

put this code in bp-custom.php

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;
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;
}

Edit: there was a small mistake, Edited to correct it

Skip to toolbar