Yoast is duplicating blog name in title tag (2 posts)

  1. jasonbmitchell
    Posted 2 years ago #

    I'm not super sure which of the includes is causing my titles to look like this:

    "Hincapie Ghisallo LS Jersey and Vest Review - FeedTheHabit.com - FeedTheHabit.com"

    I don't want "- FeedTheHabit.com" in there twice. What should I do with my title include below to eliminate the duplicate?

    <title><?php if (is_home()) {bloginfo('name'); echo ' - ';bloginfo('description'); }else { ?><?php wp_title(' '); ?><?php if(wp_title(' ', false)) {echo ' - '; } ?><?php bloginfo('name'); } ?> </title>

    BTW... I just started using Yoast SEO and this started at that time, apparently.

  2. jasonbmitchell
    Posted 2 years ago #

    Figured it out. Just went back to the basics:

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

Topic Closed

This topic has been closed to new replies.

About this Topic