If you are using “WordPress SEO by Yoast” plugin, then you may have noticed that it prints the site name two times in page title. For example, if the site name is MY BLOG, then it prints “post title – MY BLOG – MY BLOG“. This is a common issue in hard coded themes. They do not simply cooperate with the plugin. This can be fixed by replacing title generator code in your theme’s header.php file with <?php wp_title(''); ?>
First, go to WordPress SEO titles settings and uncheck Force rewrite titles. Then open up header.php file of your theme and search for <title>. Then replace whole <title>some code</title> with <title><?php wp_title(''); ?></title> and update file. This should fix your problem. Now go back to your site and make sure that site name in title is displaying only once. I faced the same problem, and fixed it by doing the above hack.
Update:
Fixing this issue in Graphene Theme is even easier. Go to Graphene Options –> Display –> Miscellaneous Display Options –> Site title options and just put #post-title in Custom content pages site title.
If you are comfortable with child theme and php, you may add this function to graphene child theme’s functions.php file.
function my_remove_filter(){ remove_filter( 'wp_title', 'graphene_title' ); } add_action( 'init', 'my_remove_filter' ); |
This disables Graphene theme’s ability to modify post titles. This is a much better solution.
Follow these topics Graphene, WordPress
Short Link:


31 comments
2 pings
Skip to comment form ↓
Rajesh Kumar
May 19, 2012 at 2:38 pm (UTC 5.5) Link to this comment
Hi Prasanna,
Iam using WP Clear theme and facing problem like post title – sitename : sitename. how to fix this problem??
Prasanna SP
June 11, 2012 at 9:34 am (UTC 5.5) Link to this comment
There may be an option to change the title structure in your theme options. Look for it, if there is no, then try the above hack.
vijay
June 2, 2012 at 12:13 am (UTC 5.5) Link to this comment
Hey,you helped me to fix this issue.thanks alot
Prasanna SP
June 11, 2012 at 9:48 am (UTC 5.5) Link to this comment
You are welcome Vijay!
simran
June 18, 2012 at 11:27 pm (UTC 5.5) Link to this comment
hey i just followed your steps but didn’t find it useful as i share my content on google+ its still showing doule title here are attchments for better vision:
After activating plugin and modifying header:
https://dl.dropbox.com/u/37329086/sfdfsd.PNG
Before activating:
https://dl.dropbox.com/u/37329086/sdfsd.PNG
Satish
July 8, 2012 at 12:57 pm (UTC 5.5) Link to this comment
Thank you very very very very very very very very very very very very much
Actually first i copied what you mentioned above
But later i saw that the same code was shown in post title as a code.. Later again i released that i there are no proper spaces in the code. so copied and resolved my problem with yoast 
so its not
in the first para. Its
without space and all
any how thanks for the tip mate
Prasanna SP
July 9, 2012 at 6:33 pm (UTC 5.5) Link to this comment
Thanks for the notification Satish! I’ve removed the space from
wp_titlecode and updated the post.Satish
July 9, 2012 at 9:02 pm (UTC 5.5) Link to this comment
Cool Dude
Thank you very much again 
Pixxel Media
October 3, 2012 at 7:42 am (UTC 5.5) Link to this comment
Saved one of my blogs using this tip. Thank you so much Prasanna SP. It was super easy and informative.
Juan
October 6, 2012 at 12:58 am (UTC 5.5) Link to this comment
Thanks
evan
February 24, 2013 at 7:39 am (UTC 5.5) Link to this comment
Awesome, worked great. No more double sitename titles for me. Thanks!
Jan
May 10, 2013 at 7:50 pm (UTC 5.5) Link to this comment
Though this post is a little old, it could help me!
Thank you Prasanna!
View all comments
Pixxel Media | Graphic Design | Website Development » Wordpress SEO Plugin worth checking out
October 4, 2012 at 3:45 am (UTC 5.5) Link to this comment
[...] we went hunting around the web and finally found the WordPress Seo Plugin double title fix. The blog is not very pretty but it tells you exactly how to fix the problem. In a summary, it [...]
A few problems one might encounter when installing, reinstalling or moving a WordPress blog with plugins - Reflections of a Poet
November 8, 2012 at 7:43 pm (UTC 5.5) Link to this comment
[...] see http://en.forums.wordpress.com/topic/dont-show-page-title-in-page-body?replies=9#post-606411, http://www.prasannasp.net/fix-seo-by-yoast-prints-site-title-twice, http://wordpress.org/support/topic/site-title-showing-double, [...]