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
-
Should I be worried about our 'Duplicate' content
Hi guys... I've just been working through some issues to give our site a little cleanup. I'm working through our duplicate content issues (we have some legitimate duplicate pages that need removing, and some of our dynamic content is problematic. Are web developers are going to sort with canonical tags this week.) However... There are some pages that are actually different products, but are very similar pages that are 'triggering' MOZ to say we have duplicate pages. Here an example... http://www.toaddiaries.co.uk/filofax-refills/filo-12-month-inserts-personal-size/fortnight-view-filofax-personal and http://www.toaddiaries.co.uk/filofax-refills/filo-12-month-inserts-personal-size/week-to-a-view-filofax-personal They are very similar refill products, it's just the diary format is different. Question: Should I be worried about this? I've never seen our rankings change in the past when 'cleaning up' duplicate content. What do you guys think? Isaac.
On-Page Optimization | | isaac6630 -
Is there a way to keep your brand name in the title tag even if your title is cut off?
Hi, I've been thinking of placing our brand name in the front of our title tag for brand recognition purposes. While doing research I came across a few sites that seem to have their brand name on every title tag, regardless of whether of not their title tag was too long and getting cut off by Google. Ex: Personalized Cutting Broads & Humidors...-Etsy The title tag for the example above was for a store in Etsy that sells personalized cutting broads, which was what i searched for. Normally a title tag that is too long gets cut off by Google and your brand name no longer shows if you've positioned it at the end of your title tag. Is there a way to get your brand name to show up at the end of every title tag even if your title is long and gets cut off by Google? Obviously, I could just place the brand name at the front of my title tag, but if I wanted something like my example above is that possible? Thanks You
On-Page Optimization | | znotes0 -
Duplicate content with tagging and categories
Hello, Moz is showing that a site has duplicate content - which appears to be because of tags and categories. It is a relatively new site, with only a few blog publications so far. This means that the same articles are displayed under a number of different tags and categories... Is this something I should worry about, or just wait until I have more content? The 'tag' and 'category' pages are not really pages I would expect or aim for anyone to find in google results anyway. Would be glad to here any advice / opinions on this Thanks!
On-Page Optimization | | wearehappymedia1 -
Hit by Panda 4.1 and it couldn't be more wrong!
Hi, I'm scratching my head with this one, I have a website with around 40 pages of unique content produced by a professional copywriter who works magazines and PR agencies - each page has around 750/1000 words - according to Google the reading age is intermediate as you would expect from a good copywriter, I have anchor points jumping around the page to information the user shows an interest in - this happens I have video recording and heat maps. I also receive 100s and on some pages 1000s of social shares from Facebook, Twitter, Linkedin and G+. I wanted to build a site the way Google wants you to so I have done no link build at all, everything focused onsite so I just spent the last 2 months making the whole site responsive for mobile and tablet devices - I also spent time getting the load time down and 'was' in the process of hooking into a CDN for extra performance. Ive done everything I can to make the site just good and its reflected in the social sharing and natural links from sites such as huffington post. On the 23rd my sites rankings which were solid for over 2 years have crashed, but what's worse is ive been dropped and replaced with sites using the same tactics as the Payday Loan industry, and it seems great favouritism has been given to sites containing Adsense - I can see ranking one page sites with less than 300 words content and 3/4 ad units above the fold and sites which have taken chunks of content off Wikipedia and rank. Thumbs up Google, great job.
On-Page Optimization | | followuk0 -
If I put 'keyword/url' combination to 'stop run weekly', will it dissapear from the summary page in the on-page grader?
The summary page of the on-page grader chooses the keyword and url combination itself. Now if I choose another combination, I would like the former to dissapear from the summary page. The only option is 'stop running weekly'. But will it disappear from the list also?
On-Page Optimization | | jongeneelbv0 -
How to handle wordpress tags
Hi fellow SEO mozzers, I am getting 'duplicate content' errors when our site is crawled, mainly down to our WordPress blog and how we have handled tags. Currently, they are being crawled and as such are regarded as duplicate pages. I have read several different articles on how to handle tags. Some suggest noindex the tag URL's. Others suggest to optimize them and allow them to be indexed since Google has confirmed they won't penalize a WordPress site for having archive pages that publish and point to the same content. It will select the best link to represent the cluster of links. Over the past few months, nearly 4% of our WordPress traffic have been referred by tag pages listed in search engines. Initially I was going to noindex the tag pages, but going on the above info I wonder should I leave them as they are? Or is the issue that having duplicate content will lead to inefficient crawling? Any views/opinions on how best to handle this?
On-Page Optimization | | efink0 -
Would adding a line break tag into the product name affect SEO ranking and Google's ability to read the entire title?
Our client would like to include a link break so that part of the product name always showed up on a second line. Would this affect how Google bots crawl the product name? Would it also affect how Google would show the product name in a search result page? Thanks!
On-Page Optimization | | BrandLabs0 -
Are duplicate titles an issue for pages I don't need ranking for?
A client has a load of duplicate page titles on their site. However, to cut a long story short, most of these pages are pointless and therefore we don't need ranking for them. As such, I'm not concerned whether any of the pages with duplicate content on them are ranked or not..... unless having duplicate page titles / content on these pages could mean that other pages on the site, like the homepage, don't rank as high because of this. Do I need to worry about duplicate titles on these pages, or can I ignore duplicate content on pages that I don't want to be ranked? Hope that makes sense!
On-Page Optimization | | RiceMedia0