WordPress SEO Yoast – Duplicate Site Title
-
I’ve seen a post regarding this but there were mixed reviews on what fixed the problem. I do not want to change out one piece of code to fix one problem but gain a different one. The code in my theme is:
<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>
[Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]
Wondering what it should be so no duplicate title appears but it does not affect anything else.
thanks for the help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WordPress SEO Yoast – Duplicate Site Title’ is closed to new replies.