Remove blog name from title on single posts
-
Hi everyone,
I would like to know if anyone can work out how to remove the site title/name from the page title of single posts.
The tile is fine on archives, the homepage and on single pages, however I don’t want it to show on single posts.
The site is using Twenty Ten (Custom) and has slightly customised title code already.
Here is the code:
<title><?php /* * Print the <title> tag based on what is being viewed. */ global $page, $paged; // Add the word tag to tag pages. $site_description = 'Tag - '; if ( $site_description && ( is_tag() ) ) echo " $site_description"; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ); ?></title>All help is really appreciated – I have been trying for a while now and not getting anywhere!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Remove blog name from title on single posts’ is closed to new replies.