Site Title is getting added to Title Tags (4 posts)

  1. rterry5
    Posted 2 years ago #

    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.]

  2. Michael
    Forum Moderator
    Posted 2 years ago #

    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>

  3. rterry5
    Posted 2 years ago #

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

  4. Michael
    Forum Moderator
    Posted 2 years ago #

    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 http://wordpress.org/support/plugin/all-in-one-seo-pack

Topic Closed

This topic has been closed to new replies.

About this Topic