I’m using a static front page on my site with the posts on another site. This results in heavy problems with the -element. On the front page, title is missing completely, ending up with the browser just showing the url. On the news page, page title is followed by site title without any whitespace, for when it should display only the site title when viewing the home page and just the page title when viewing the posts page.
Fix please.
I now solved this by replacing the esplanade_doc_title function with the following simple code:
function esplanade_doc_title( $doc_title ) {
global $page, $paged;
$doc_title = str_replace( ' »', ':', $doc_title );
$site_name = get_bloginfo( 'name' );
$doc_title = $site_name . $doc_title;
if ( $paged >= 2 || $page >= 2 )
$doc_title .= ', ' . __( 'Page', 'esplanade' ) . ' ' . max( $paged, $page );
return $doc_title;
}
endif;
Should definitely be an option to configure.
New version – Nothing fixed :[
Try using a plugin like WordPress SEO by Yoast to generate your titles.
[in spanish]
Bachsau, muchas gracias por tu aportación, yo también tenía el mismo problema con ese bug y ahora puedo ver correctamente los títulos de mi sitio web.