Support » Plugin: Yoast SEO » Page title duplicated

Viewing 5 replies - 1 through 5 (of 5 total)
  • Check the theme’s header.php and report back what you see between the <title> tags.

    I had a similar issue with the theme I am currently building, but had the blog’s name shown twice. It ended up being that I had set the theme to output the information, but I believe that WordPress SEO catches one of the functions (the_title(), IIRC) and puts a filter on it to display the specified title format in the plugin.

    Thread Starter waynerpol

    (@waynerpol)

    Hi
    Thanks for your reply
    this is what is between the title tags.

    <title>
    <?php
    global $page, $paged;

    wp_title(‘|’, true, ‘right’);

    bloginfo(‘name’);

    $site_description = get_bloginfo(‘description’, ‘display’);
    if ($site_description && ( is_home() || is_front_page() ))
    echo ” | $site_description”;

    if ($paged >= 2 || $page >= 2)
    echo ‘ | ‘ . sprintf(__(‘Page %s’, tk_theme_name), max($paged, $page));
    ?>
    </title>

    im fairly new to this so please go easy on me !!!

    Looks like your theme is trying to do some of the SEO work in titling the pages. Change it so that it looks like this:
    <title><?php wp_title('|'); ?></title>

    Then see if your titles show up properly. If you ever update the theme, you will likely have to redo this, so write it down somewhere 🙂

    Thread Starter waynerpol

    (@waynerpol)

    @ TheGremlyn

    You are a legend MANY THANKS

    Happy to help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page title duplicated’ is closed to new replies.