• ok so i have yoast and im getting the age old double title error. I keep reading people say may sure you add <title><?php wp_title(”); ?></title> but my header file looks way diff and I dont know if i need to remove all this extra code or just put it in with it
    this is what my header.php has in it
    <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’ , max( $paged, $page ) );
    ?>
    </title>

Viewing 1 replies (of 1 total)
  • Thread Starter DrNeptune

    (@drneptune)

    ok… i think i fixed it.. I just went ahead and replaced the old title stuff with the new short one. then the titles were still doubled. so i looked to see what titles were correct and the only ones that were good were the product titles. So i just copied and pasted the %%title%% %%page%% %%sep%% %%sitename%% that was in the product box into the page and post blocks even though they were that to begin with … it now works.. dunno what i changed maybe there was something.. i have no clue really. maybe the code cchanged it

Viewing 1 replies (of 1 total)
  • The topic ‘SEO Issues with Yoast double titles. yup this old problem’ is closed to new replies.