Support » Fixing WordPress » Site Title is getting added to Title Tags

  • I can’t for the life of me figure out why the site title is getting added to the end of my title tags. I have All In One SEO installed, would that be interfering with anything? Here is what the title code in my header file looks like:

    	 * Print the <title> tag based on what is being viewed.
    	global $page, $paged;
    	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 ) );

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael


    Forum Moderator

    this line would add the site title: bloginfo( 'name' );

    if you are working with a seo plugin, the best might be to reduce the code in the header to:

    <title><?php wp_title(); ?></title>

    I reduced the code in the header to <title><?php wp_title(); ?></title> but no luck 🙁



    Forum Moderator

    make sure you have no caching plugin’s activated;

    if you have the reduced meta title tag in the header, and it makes no difference, then the problem might be with the seo plugin; please post in the plugin’s support section

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Site Title is getting added to Title Tags’ is closed to new replies.