WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jasonbmitchell
    Member
    Posted 4 months 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
    Member
    Posted 4 months ago #

    Figured it out. Just went back to the basics:

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

Reply

You must log in to post.

About this Topic

Tags