[Plugin: WordPress SEO by Yoast] Modifying page titles
-
So Yoast says
Be aware that for WordPress SEO to be able to modify your page titles, the title section of your header.php file should look like this:
<title><?php wp_title(”); ?></title>
My title tag is as shown.
<title><?phpif ( is_single() ) { single_post_title(); }
elseif ( is_home() || is_front_page() ) { bloginfo(‘name’); print ‘ | ‘; bloginfo(‘description’); get_page_number(); }
elseif ( is_page() ) { single_post_title(”); }
elseif ( is_search() ) { bloginfo(‘name’); print ‘ | Search results for ‘ . wp_specialchars($s); get_page_number(); }
elseif ( is_404() ) { bloginfo(‘name’); print ‘ | Not Found’; }
else { bloginfo(‘name’); wp_title(‘|’); get_page_number(); }
?></title>
So do I change wp_title(‘|’) to wp_title(”) or do I replace everything above with wp_title(”)
Thanks
- The topic ‘[Plugin: WordPress SEO by Yoast] Modifying page titles’ is closed to new replies.