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
-
Making Shopify URL's Simpler - Losing the words 'collection', 'product' and 'page' in a Shopify store URL. Any advice?
Hi Mozers! I have a Shopify store (of which there are many advantages) however one big SEO disadvantage, is that my URL structures contravene all Moz advice on dynamic URL structure and whats more I am reminded about this every week when I have a Moz site crawl and I have a batch of URL's that are longe than the 75 characters. A Shopify URL will run www.domain name.com/collections/collection-name/product/product-name. According to advice a it should be www.domain name.com/collection-name/product-name - Don't even get started on sub-collections! I sell portfolio books, album etc and keepsake memory boxes (so long keywords) AND, I have a long(ish) business name. So, For user experience and keyword length, do I just ignore trying to achieve a dynamic URL under 75 characters? When I have asked Shopify, the say their URL's are an integral part of the "Ruby on Rails" system, so nothing can be done Or can it ??? I can't be the only Moz member with this issue can I ??
On-Page Optimization | | nick_HandCo0 -
Duplicate Content
I'm currently working on a site that sells appliances. Currently, there are thousands of "issues" with this site, many of them dealing with duplicate content. Now, the product pages can be viewed in "List" or "Grid" format. As Lists, they have very little in the way of content. My understanding is that the duplicate content arises from different URLs going to the same site. For instance, the site might have a different URL when told to display 9 items than when told to display 15. This could then be solved by inserting rel = canonical. Is there a way to take a site and get a list of all possible duplicates? This would be much easier than slogging through every iteration of the options and copying down the URLs. Also, is there anything I might be missing in terms of why there is duplicate content? Thank you.
On-Page Optimization | | David_Moceri0 -
Duplicate Content for Men's and Women's Version of Site
So, we're a service where you can book different hairdressing services from a number of different salons (site being worked on). We're doing both a male and female version of the site on the same domain which users are can select between on the homepage. The differences are largely cosmetic (allowing the designers to be more creative and have a bit of fun and to also have dedicated male grooming landing pages), but I was wondering about duplicate pages. While most of the pages on each version of the site will be unique (i.e. [male service] in [location] vs [female service] in [location] with the female taking precedent when there are duplicates), what should we do about the likes of the "About" page? Pages like this would both be unique in wording but essentially offer the same information and does it make sense to to index two different "About" pages, even if the titles vary? My question is whether, for these duplicate pages, you would set the more popular one as the preferred version canonically, leave them both to be indexed or noindex the lesser version entirely? Hope this makes sense, thanks!
On-Page Optimization | | LeahHutcheon0 -
Google Doesn't Display A Right Page Title
For some reason Google Displays a wrong page title of some of my pages. E.g. page http://www.imoney.my/home-loan The title in the search reach results says "Home Loan - iMoney", but the one I've set up is <title></span><span class="webkit-html-tag">Housing Loan: Compare Mortgages of All Malaysian Banks @iMoney.my</span><span class="webkit-html-tag"></title> Even when I preview it on the preview tool, it shows the full title, but when I google - again the short one. Does anyone know what the reason for that is?
On-Page Optimization | | imoney0 -
Can soft 404's hurt my rankings?
This post mainly pertains to soft 404's but I recently dropped a few ranks in my main keyword which I have maintained prior to this my better rank for well over 2 years. I participate in NO BLACKHAT and obtain links naturally. I want to describe a few issues that happened prior to my ranking dropping and see what you guys think. I started to receive about a week prior to my ranks dropping DNS issues with GWT. It was weird because when I would use Goole Fetch on those pages they would return just fine so I was not sure what was happening there. I use Google page speed server which did in fact decrease my load time (YEAH!!) so that was cool. About 1 week prior to my rankings dropping I enabled godaddy's Website Accelerator as well thinking that could help even more. Because of this I thought maybe this had something to do with my DNS issues with Google so I decided to turn off my website accelerator with Godaddy and just leave my Google pagespeed service on. I figure I don't need 2 of them anyways IMO. Also at the same time I started to receive a ton (31,000+) html errors with duplicate metadescriptions and titles. I discovered I had an error with my code which was displaying 2 different sets of descriptions and titles for each of these pages. I since then have fixed the issue and waiting for Google to index those pages. Here is were I think I might have been hurting from the drop in rankings. Some months ago (maybe 2) I decided to redirect my 404's to my homepage. Yes I know this is not good now and I have created a proper 404 page which returns the 404 code. I recently started getting a ton of Soft 404 errors in GWT which is what brought my attention to this issue. My question is, could my action of redirecting my users to my homepage as a 404 which obviously was returning a 200 on a page that did not exist be possibly the culprit to my ranks dropping?
On-Page Optimization | | cbielich1 -
How to fix Duplicate Page Title
I have so many Duplicate Page Title issue on my website. www.soobumimphotography.com Though I had to use NAME + Area + Photographer on every title page so ended up something like this San Antonio Sports Photographer | Soobumim Photography : San Antonio Wedding Photographers | Soobumim Photography http://www.soobumimphotography.com/chicago-cubs-at-houston-astros-mlb-soobumim-photography/ What's the best way to fix this problem? Should I delete them? Redirect? - to be honest, I don't know how. I am using Yoast plugin
On-Page Optimization | | BistosAmerica0 -
Should I worry about duplicate titles on pages where there is paginated content?
LivingThere.com is a real estate search site and many of our content pages are "search result" - ish in that a page often provides all the listings that are available and this may go on for multiple pages. For example, this is a primary page about a building: http://livingthere.com/building/31308-Cocoa-Exchange Because of the number of listings, the listings paginate to a second page: http://livingthere.com/building/31308-Cocoa-Exchange?MListings_page=2 Both pages have the same Page Title. Is this a concern? If so is there a "best practice" for giving paginated content different titles? Thanks! Nate
On-Page Optimization | | nate1230