WP Yoast SEO Plugin giving Duplicate Site Title

Discussion in 'GeoCraft WordPress Theme' started by tobyb, Apr 17, 2013.

  1. tobyb

    tobyb Active Member

    Joined:
    Dec 28, 2011
    Messages:
    256
    Likes Received:
    31
    Location:
    World Wide
    I was getting a duplicate Site Title, one from the general setting in WP, and the other from the Homepage title template in the plugin.

    It showed up on top of page and also search results like this example -

    Great Homes of Murryfield | The Source for QualityLiving in MaineGreat Homes of Murryfield | The Source for Quality Living in Murryfield

    If you add the code <title><?php wp_title(''); ?></title> at top of header page.php it will hopefully correct this, my site seems to be ok now. It would also need to be replaced with any theme update. Hope this is of use to anyone with same problem.

    Tob
     
    Nitesh likes this.
  2. rogerschnur

    rogerschnur Member

    Joined:
    Mar 19, 2013
    Messages:
    216
    Likes Received:
    14
    This is a common problem with Yoast. you did the right correction replacing the existing info between the title tags with <title><?php wp_title(''); ?></title>
     
  3. tobyb

    tobyb Active Member

    Joined:
    Dec 28, 2011
    Messages:
    256
    Likes Received:
    31
    Location:
    World Wide
    Yes, I did a lot of searching for a fix, was amazed in the difference a simple fix achieved, thank you Rodger.
     
  4. aliounn

    aliounn Member

    Joined:
    Dec 7, 2012
    Messages:
    136
    Likes Received:
    6
    Hello , do i have to replace all the existing info between the title tags with <title><?php wp_title(''); ?></title> ?

    image attached
    Thank you in advance.
     

    Attached Files:

  5. tobyb

    tobyb Active Member

    Joined:
    Dec 28, 2011
    Messages:
    256
    Likes Received:
    31
    Location:
    World Wide
    Hi, I would not want to give incorrect advice, but I added it at the very top of the page above the code and is working for me, maybe someone with more expertise in this field could confirm if this is the correct place.

    Tob
     
  6. tobyb

    tobyb Active Member

    Joined:
    Dec 28, 2011
    Messages:
    256
    Likes Received:
    31
    Location:
    World Wide
    Just to give you an update I just now replaced the code , by replacing all the existing info between the title tags with <title><?php wp_title('');
    as Rodger kindly mentioned above and this is also working correctly, so this looks like being the correct method, hope this helps.

    Tob
     
  7. aliounn

    aliounn Member

    Joined:
    Dec 7, 2012
    Messages:
    136
    Likes Received:
    6
    Hi Tob,

    Thanks for your help, I appreciated

    Aliounn
     

Share This Page