Wordpress duplicate titles - can't find original title tags
-
I added new code to rewrite the page titles <title><?php wp_title(''); ?></title>
But I can't find the normal title tags in the Header PHP file in editor so I now have duplicate titles tags in the source code
This is the code - can't see what else would be titles? This is the website ...
<title><?php wp_title(''); ?></title>
eFavIcon(); ?>
eCSS(); ?>
enabled('Theme')) { ?>
http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic" />
-
Laura
As mentioned below, I have this theme on an active website now with Yoast running and seem to have it working.
This is the Felis WordPress theme by fireform if anyone else is curious.
Try;
-
removing the extra title tag code you added the header.php
-
select "force rewrite titles" in title settings
Let's see if that does it - I don't recall editing any other code to make it work, but I could be wrong, in which case I'll dig a little more for you.
-Dan
-
-
One quick question first - did you try checking of "force rewrite titles" under title settings in Yoast?
-
Hi Laura
I've used this theme before, so I'm going to look into how I got it to work with Yoast and I'll get back to you here.
-Dan
-
Hi Christy,
No - I still have two sets of titles in the source code but only one that I can see in the theme editor.
Laura
-
Hi Laura, has your issue been resolved?
-
Hi Laura,
If I remember correctly (it was a while since I messed around with these things), doesn't wp_title() actually add the <title>tags itself? If so you would just need:</p> <blockquote style="background: none repeat scroll 0% 0% #f7f7f7; padding-top: 5px; margin-left: 0px; padding-left: 2px; padding-bottom: 5px; white-space: nowrap; overflow-y: auto; font-family: monospace;"> <p><meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /></p> <p><?php wp_title(''); ?></p> <p> <?php sg_header_meta(); ?></p> </blockquote> <p>There is more info here : <a href="http://codex.wordpress.org/Function_Reference/wp_title">http://codex.wordpress.org/Function_Reference/wp_title</a></p> <p>If that doesn't do it, you could always try reversing your changes and use an SEO plugin, like the awesome Yoast Wordpress SEO (<a href="http://wordpress.org/extend/plugins/wordpress-seo/">http://wordpress.org/extend/plugins/wordpress-seo/</a>) which should allow you to change the titles without mucking around with the wordpress code itself.</p> <p>Hope that helps!</p> <p>Stuart</p></title>
-
Hi Laura,
That would depend on the theme you are using
If you can't find it in the header file you could check the other files
It looks like it's actually the nav bar that's coming on the title
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Duplicate page titles and hreflang tags
Moz is flagging a lot of pages on our site which have duplicate page titles. 99% of these are international pages which hreflang tags in the sitemap. Do I need to worry about this? I assumed that it wasn't an issue given the use of hreflang. And if that's the case, why is Moz flagging them as an issue? Thanks.
On-Page Optimization | | ahyde0 -
Why Can't I Get Indexed?
I cannot seem to get my website indexed by Google! I submitted the sitemap using Google WMT about a month ago but only one page is being indexed. There are very few backlinks to the site, so I don't believe there are any penalties due to over-optimization that would prevent indexing. Also, my robots.txt file is properly configured and is not preventing any pages from being crawled. I've tried using the "Fetch as Google" settings in WMT with no luck. Any ideas?
On-Page Optimization | | socialfirestarter0 -
Titles
Our site http://villasdini.com is offering beach villas on sunny Diani beach in Kenya. I have a category with beach villas in Diani beach which I want to be shown in serp if somebody search for Diani beach villas, or Diani beach hotels, Diani beach accommodation etc. I have also category with small boutique hotels, which I want to be shown in serp if somebody search for Diani beach villas, or Diani beach hotels, Diani beach accommodation etc. Should I also include Diani beach in titles? Will that not be too much of Diani bech in titles? I am afraid I have anyway already too much of "Diani beach" keyword and perhaps I am even punished for it as I can't rank for this keyword at all almost a year:-( I also want to rank on Diani beach itself and I have created Diani beach page which I want to be shown in serp when somebody search for Diani beach. I am kind of getting crazy of this:-( Any advice what I am doing wrong and what strategy I should rather do? Thank you very much, Iris
On-Page Optimization | | Rebeca10 -
Hey guys! I was looking at adding the H1 tag lower on the page than the H2 tag because I want the top bit to be a call to action. Is this proper practice?
Hey guys! I was looking at adding the H1 tag lower on the page than the H2 tag because I want the top bit to be a call to action. Is this proper practice?
On-Page Optimization | | Web3Marketing870 -
Title Tag: Phrases vs. Keywords Separated by "|"
Hello, One of my client's old sites has all category titles of the form (for example) running shoes | running shoe | walking shoes | walking shoe including many that perform well with over 60 characters. I'm in the process of rewriting the titles into something like Running and Walking Shoes, A quality shoe at OurShoes.com The reason I'm rewriting them is for future google penalties, and to look better to possible guest post opportunities. Also to look better in the SERPS But the old style is performing very well. What are the real pros and cons of each? Thanks.
On-Page Optimization | | BobGW0 -
Site Wide Title Tag Discussion
Do you think it's good to have an instance of your primary keyword occur on most of your site's title tags throughout your site? Or do you think having the keyword occur in most title tags throughout the site will dilute the ranking ability for the home page? I haven't read much about this in "best practices" for title tags. hmmmm...
On-Page Optimization | | Joes_Ideas0 -
Is my blog simply duplicate content of my authors' profiles?
www.example.com/blog is the full list of blog posts by various writers. The list contains the title of each article and the first paragraph from the article. In addition to /blog being indexed, each author's contribution list is being indexed separately. It's not a profile, really, just a list of articles in the same title & paragraph format of the /blog page. So if /blog a list of 10 articles written by two writers, I have three pages: /blog/author1 is a list of 4 articles /blog/author2 is a list of 6 different articles /blog is a list of 10 articles (the 4+6 from the two writers) Is this going to be considered duplicate content?
On-Page Optimization | | Brocberry0 -
Description tag/ duplicate content.
Quick question - will Gg deem it duplicate content if I use the description tag text anywhere else in the on-page copy? Thanks, David
On-Page Optimization | | newstd1000