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
-
Can I use £ character in title tag?
Hi - Can you use something like "save £££s" in the title tag. Have looked but can't see an answer. Thanks.
On-Page Optimization | | StevieD0 -
Why my keyword rank fell down while I didn't do anything wrong?
Hi! I just got ranking results for the past week, and I am a little bit confused about what I saw. Two weeks ago, I optimized one of my website's page for the keyword "viking appliance repair in Los Angeles" (was #43 before), and one week later I found it on the second page of Google (ranked #21). I continued working on other pages thinking that all I need to do for "viking appliance repair in Los Angeles" to get it ranked even higher is to gain high quality inbound links. But for some reason updated ranking results I got today show this keyword fell down and now ranked #51. Could you please tell me why that might happened? What affected this keyword performance while I didn't do anything with it in between that much?
On-Page Optimization | | kirupa0 -
Showing more Duplicate Title Tags Than WMT
This is yet another question between moz vs google WebMaster Tools. In WMT it only shows 5 pages with a total of 18 duplicate titles. But moz is showing 298. It appears the duplicates are canonical links for the most part. What is the discrepancy?
On-Page Optimization | | jamavan0 -
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 -
Does 'XXX' in Domain get filtered by Google
I have a friend that has xxx in there domain and they are a religious based sex/porn addiction company but they don't show up for the queries that they are optimized against. They have a 12+ year old domain, all good health signs in quality links and press from trusted companies. Google sends them adult traffic, mostly 'trolls' and not the users they are looking for. Has anyone experienced domain word filtering and have a work around or solution? I posted in the Google Webmaster help forums and that community seems a little 'high on their horses' and are trying to hard to be cool. I am not too religious and don't necessarily support the views of the website but just trying to help a friend of a friend with a topic that I have never encountered. here is the url: xxxchurch.com Thanks, Brian
On-Page Optimization | | Add3.com0 -
2 keyword title tag best format
I have a client that does ski and snowboard rentals in lake tahoe and not sure what the best way to optimize the home page title tag. Lake Tahoe Ski and Snowboard Rental
On-Page Optimization | | tahoemedia
Lake Tahoe Ski & Snowboard Rental
Ski & Snowboard Rental Lake Tahoe
Ski Rental | Snowboard Rental | Lake Tahoe Which one of these is the best or is it not even listed??? Thanks!0 -
2 Titles
The analysis said that I have two titles on our main page. www.msperformanceonline.com the 1st is "Camaro Accessories, Camaro Parts, MS Performance" and the second is ( and""). I have looked and can't find out where it is!?! I been looking for hours through the code. Is there anything else I can use to find it? I Anyone's help will be appreciated.
On-Page Optimization | | msperformance0 -
Duplicate page title and content
Hello, I have an ecommerce store where we offer many similar products, and the main difference could be the color or memory storage. Due to this reason my main problem appears to be be duplicate page title and content. What is the best way to correct this issue? I cant make them different neither. I always include this particular difference in title or description. I guess it is not enough? any way to fix it? thanks!
On-Page Optimization | | tolyadem10