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?
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'); ?>
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.