Are you using any translation plugin such as QTranslate?
As that will make multiple titles, descriptions, etc (one per language) – then the WordPress SEO plugin won’t know to only use one of them without some modifications. I’m working on that issue myself.
No, I’m not using any translation plugin.
You have to check the header of your theme and change . I had the same problem with Simplemag theme. As the theme used its own function for the site title, Yoast SEO was fooled.
You have to check what is between
<title>
Code Here
</title>
Hi Li-An
I’m not much of a code expert.
Can explain what should I change ?
You have to copy the content of the header.php file here. Is it a free theme or a premium theme ?
It’s a premium theme I bought from themeforest
here is the title code :
<title>
<?php //Print the <title> tag based on what is being viewed
global $page, $paged;
wp_title( '|', true, 'right' );
// Add the blog name.
bloginfo( 'name' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'made' ), max( $paged, $page ) );
?>
</title>
I already tired to change
wp_title( '|', true, 'right' );
to
wp_title(");
It didn’t work
You should have wp_title(); not wp_title(“);
thank you Li-An
but wp_title(); also didn’t work
this is my title template : %%sitename%% %%page%% %%sitedesc%% %%sep%%
I also enabled “Force rewrite titles” in the plugin and no luck.
any other suggestion?
Wich version of Yoast SEO do you have – the last version seems to have some problem ?
On the Simplemag forum, they indicatewp_title('');
so you were not wrong.
Did you put wp_title(“); or wp_title(”); ?
I made a test with last SOE Yoast plugin (1.5.2.2) and I have no problem with another premium theme.
Try this: in the SEO plugin Titles & Metas settings page, General tab, check Force rewrite titles.
I’ve had the duplicate titles problem on a couple of sites, and this fixed it.
Hi hmclean
In previous post I mentioned that I already tried that and it didn’t help.
Li-An
I tested all these : wp_title(“) and wp_title(”) and wp_title()
no luck.
Did you ask your theme’s support ? WP SEO Yoast is very popular so I think they are interested in the problem.
You don’t have any cache plugin and/or you cleaned each time your browser’s cache ?