CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.
The title of my website is showing twice on every page except my homepage and blog page.
If I go in the admin panel and take out the Site Title, it just shows something like this
” Portfolio | “
but if I put it back in it shows
” PortfolioChristopher Burton | Christopher Burton “
Did you hardcore part of your title tag in your template?
This reply has been reported for inappropriate content.
Hardcore? or hardcode? Assuming you meant hardcode, no. That was the first basic step I took to troubleshoot.
Hehe, Hardcode of course… :-)
Well, it was pretty obvious aswell, but the first thing I could think of. Can you link your title tag from your template file?
This should give the result you want;
< ?php wp_title();?> | < ?php bloginfo('name'); ?>
It uses the Blog name from your settings page (which would be Christopher Burton, if im not completely off) and the title of the page you are viewing at. When using the above code, you should not write “|” in your title on the page.
Actually, this would be more correct:
< ?php wp_title('|', true, 'right'); bloginfo('name'); ?>
Nope doesn’t work. Still shows twice. Also, I didn’t write in ” | “, it’s the default wordpress title. If you check the source code, it shows up twice but my wordpress title code is the default one.
SEO Plugin was the cause.
I was gonna call it!
The Yoast SEO Plugin did this to me also.
I’m only an hour out, that’ll teach me for eating out!
Yoast SEO got me with this too
How I fixed that.
Went to SEO > Titles in the Dashboard.
Found Page > Title templates (as I do have pages only on my website)
And inserted this, but without quotes “%%title%%-“
I also have that same issue and that code hasn’t seemed to change it. Any thoughts? Thanks.
@lisapatb Are you using an SEO plugins?
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed