WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO Yoast - Duplicate Site Title (17 posts)

  1. Samuel
    Member
    Posted 2 years ago #

    I am getting a duplicate Site Title, one from the general setting in WP, and the other from the Homepage title template in the plugin. It shows up like this - Green Homes of Maine | The Source for Sustainable Living in MaineGreen Homes of Maine | The Source for Sustainable Living in Maine

    I have my Site Title set in the General Settings in WP so that my Copyright shows properly in my footer via PHP.

    I have the Homepage Title template set in the WP SEO settings.

    Which should I get rid of to fix the duplicate title tag? I need the copyright to be correct in my footer, but will it hurt me to remove the Homepage title template from the SEO plugin?

    Or is there another way to fix this? Such as code in the header.php? Not sure...

    Anyone?

  2. farrelldoc
    Member
    Posted 2 years ago #

    This happened to me too. You have to make sure that your title section in the header.php file is exactly like this:

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

    I had a bunch of other code in mine, and when I changed it to the above, it fixed it. These instructions are right above the Title box in the SEO template, but it took me a while to read it.

    (I saved the other code I removed in a file just in case I ever remove this plugin.)

  3. AstroGremlin
    Member
    Posted 2 years ago #

    I did exactly this (and saved my original code in a Notepad file - great minds think alike). But I still get a double site title! See: http://blogsnewsreviews.com/ "Force rewrite titles" doesn't fix it either.

    I'm think of changing my WP tagline to, "The site so nice Yoast named it twice."

  4. redi1
    Member
    Posted 2 years ago #

    I'm using techozoic theme. (same issue with twenty ten)
    Inserting <title><?php wp_title(''); ?></title> in header.php did not work for me.

    Only ways for it to work are:
    1. disable wordpress seo yoast
    2. select WordPress Default 1.6

    Are there any solutions?

  5. empressofdrac
    Member
    Posted 2 years ago #

    @farrelldoc

    Thanks a lot. I had problem with double title tags a while ago. Your advice works for this site - Mel Lifshitz.

  6. samas
    Member
    Posted 2 years ago #

    I can confirm that this fixed the same issue for me

    WP v 3.2.1
    Theme : Twenty Eleven

  7. casiopea
    Member
    Posted 2 years ago #

    @ farrelldoc

    Thanks so much. This absolutely fixed this problem.

  8. Juuth
    Member
    Posted 2 years ago #

    Great, looks good :). Now that i changed this line in header.php, when can i expect to see the result? Should it be there immediately or does it take some time?

    Thanks!

  9. Geoffrey Hale
    Member
    Posted 2 years ago #

    @Juuth If you do what farrelldoc said, you should see results immediately. Thanks, farrelldoc.

    This happened to me too. You have to make sure that your title section in the header.php file is exactly like this:

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

  10. KbhClaudius
    Member
    Posted 1 year ago #

    The fix with:

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

    didn't do it for me.

    I have i title line going:

    <title><?php wp_title('-', true, 'right'); ?> <?php bloginfo('name'); ?></title>

    It worked until I made a blog page and suddenly the titles of the front page and one other got overwritten with the title of the blog page.

    Any suggestions?

  11. Saurabh_saha
    Member
    Posted 1 year ago #

    I am having SEO BY YOAST activated in my website http://infoincrement.com
    After using yoast plugin the site title and description changed to InfoIncrement - The Best Online MagazineInfoIncrement. It not repeating the tag line but still the site's title is repeating itself.
    Any Suggestions !!!

  12. Saurabh_saha
    Member
    Posted 1 year ago #

    @farelldoc
    Thanks Man.
    I edited my header.php first but it might not edited. Now I edited it and it's successfully worked.
    Thanks again.

  13. 3hatscomm
    Member
    Posted 1 year ago #

    Same problem; the code in the header.php is correct, but still get duplicate page title in the browser. Want to keep Yoast plugin, any other solutions?

  14. jcmiles82
    Member
    Posted 1 year ago #

    Okay... I got mine working too by using the correct code in header.php.

  15. jcmiles82
    Member
    Posted 1 year ago #

    Update*

    Changing the code in header.php did in fact fix my titles, but it messed up my theme. A small excerpt of script is showing at the top of my website now. Not sure what to do?

  16. ubique48
    Member
    Posted 1 year ago #

    That might just be a syntax error - it would be helpful if you could post the code so people could see?

  17. jcmiles82
    Member
    Posted 1 year ago #

    Sorry... my issue has been resolved. There was some additional code in my theme that needed to be stripped out.

Topic Closed

This topic has been closed to new replies.

About this Topic