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
-
Miffed about why the page isn't ranking!
HI all - hope you can help We seem to be dropping back and fourth completely on one of our key terms and I really don't get it. The home page seems to now be ranking for another but I have made a page purely for this main term and whilst it was starting to rank well , we have now dropped off for it. Anyone able to lend some advice?
On-Page Optimization | | KellyDSD860 -
Wordpress 'Hide Title' Feature, does this help shorten title length
Im wondering if anyone with some Wordpress experience can help me. I am using Yoast to create my page titles, but yet Moz tells me that my page titles including my actual page title tag which is 'dumfries wedding photography | Hemera Visuals' by clicking on the 'hide title' feature in wordpress will this in turn stop wordpress from automatically adding my page title and therfor bring my title length down drastically? And if so will I have to wait till google next crawls my page to see if this works? Kind Regards Cameron.
On-Page Optimization | | hemeravisuals120 -
404's Wordpress products
Hi Guy's, On a Wordpress website we have a SEO Ultimate plugin running. Every day i get lot's of 404 errors of products that doesn't exist anymore (but are indexed, site: .... ). In the beginning we had lot's of testproduct that are not coming back in the shop. So i was wondering if there is a way to automaticly redirect product when there are out of stock, or not comming back anymore... So my 404's can be fixed. Thanks!
On-Page Optimization | | Happy-SEO1 -
Content hidden behind a 'read all/more..' etc etc button
Hi Anyone know latest thinking re 'hidden content' such as body copy behind a 'read more' type button/link in light of John Muellers comments toward end of last year (that they discount hidden copy etc) & follow up posts on Search Engine Round Table & Moz etc etc ? Lots of people were testing it and finding such content was still being crawled & indexed so presumed not a big deal after all but if Google said they discount it surely we now want to reveal/unhide such body copy if it contains text important to the pages seo efforts. Do you think it could be the case that G is still crawling & indexing such content BUT any contribution that copy may have had to the pages seo efforts is now lost if hidden. So to get its contribution to SEO back one needs to reveal it, have fully displayed ? OR no need to worry and can keep such copy behind a 'read more' button/link ? All Best Dan
On-Page Optimization | | Dan-Lawrence0 -
Pages I don't want
Hello Friends, A few days ago, I set up my wordpress site and everything is great so far, there's just one small problem. Wenn I search for site:mysite.com I see a lot of pages in the index I don't want to have on my site. It looks like demo pages from the theme I bought. Examples: http://mysite.com/themefusion_es_groups/group1/ http://mysite.com/slide/youtube/ http://mysite.com/lorem-ipsum-2/ http://mysite.com/slide/demo-5 What would be the best way to handle it? Simply delete the pages, then a soft 404 shows. Delete the pages and 301 them to the start page. Are they disapearing from the infex then? I am very grateful for tips regarding this! Thanks in Advance:)
On-Page Optimization | | grobro0 -
Duplicate Content - What can be duplicate in two different product pages.
I am having a hard time understanding how my 3 different product pages are being shown up as Duplicate Content in s crawl. Some of my 21 different pages are being shown as duplicate content. Here are 3 of those: 1. http://champu.in/korn-rock-band-mens-round-neck-t-shirt-india 2. http://champu.in/stop-the-burning-mens-round-neck-t-shirt-india 3. http://champu.in/funny-t-shirts/absolut-punjabi-red-men-s-round-neck-t-shirt Can someone help me with this. Thanks in advance 🙂
On-Page Optimization | | sidjain4you0 -
Duplicate Page Titles and Duplicate Content
I've been a Pro Member for nearly a year and I am bound and determined to finally clean up all the crawl errors on our site PracticeRange.com. We have 180 errors for Duplicate Page Titles and Duplicate Content. I fixed many of the pages that were product pages with duplicate content. Those product descriptions were edited and now have unique content. However, there remain plenty of the errors that are puzzling. Many of the errors reference the same pages, for example, the Home Page, Login Page and the Search page (our catalog pages).
On-Page Optimization | | AlanWills
In the case of the Catalog Page errors, these type pages would have the same title every time "Search" and the results differ according to category. http://www.practicerange.com/Search.aspx?m=6
http://www.practicerange.com/Search.aspx?m=15 If this is rel=canonical issue, how do I fix it on a search result page? I want each of the different category type pages to be indexed. One of them is no more important than the other. So how would I incorporate the rel=canonical? In the case of the Home Page errors, I'm really confused. I don't know where to start to fix these. They are the result of a 404 error that leads to the home page. Is the content of the 404 page the culprit since it contains a link to the home page? Here are examples of the Home Page type of crawl errors. http://www.practicerange.com/404.aspx?aspxerrorpath=/Golf-Training-Aids/Golf-Nets/~/Assets/ProductImages/products/Golf-Training-Aids/Rubber-Wooden-Tee-Holder.aspx http://www.practicerange.com/404.aspx?aspxerrorpath=/Golf-Training-Aids/Golf-Nets/~/Assets/ProductImages/products/Golf-Training-Aid/Impact-Bag.aspx Thanks , Alan WillsPracticeRange.com0 -
Canalogical Tag
Hello, I wanted to have a clean url for example : site.com/producta and our web developer installed this module which does this great. However there are now two products one with unclean url for example sit.com/productaxmlayoiadkja and the clean one - on both pages page it says: <link rel="canonical" href="http://www.site.com/producta">Is this correct? Reason being is I'm aiming for the long tail and the site is not getting any visitor although we have unqiue 250 products+ and getting less then 20 visitors a day after almost a year! I would appreciate any help because I'm getting in real trouble because the site is performing so badly!
On-Page Optimization | | reallyitsme0