Quantcast
Channel: WordPress.org Forums » [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Support
Viewing all articles
Browse latest Browse all 42467

andamira on "[Plugin: WordPress SEO by Yoast] WordPress SEO Yoast - Duplicate Site Title"

$
0
0

Had the same problem.

My solution was to comment the lines
echo bloginfo('name'); everywhere except inside is_home() and is_search(), resulting like this:

<title>
<?php if (is_home()) {
	echo bloginfo('name');
} elseif (is_category()) {
	echo __('Category » ', 'blank'); wp_title('« @ ', TRUE, 'right');
	// echo bloginfo('name');
} elseif (is_tag()) {
	echo __('Tag » ', 'blank'); wp_title('« @ ', TRUE, 'right');
	// echo bloginfo('name');
} elseif (is_search()) {
	echo __('Search results » ', 'blank');
	echo the_search_query();
	echo '« @ ';
	echo bloginfo('name');
} elseif (is_404()) {
	echo '404 '; wp_title(' @ ', TRUE, 'right');
	// echo bloginfo('name');
} else {
	echo wp_title(' @ ', TRUE, 'right');
	// echo bloginfo('name');
} ?>
</title>

this works for me


Viewing all articles
Browse latest Browse all 42467

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>