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
-
Using a hyphen in title tags and the impact of spaces
Hi I am trying to arrive at a best practice template for a title tag for my organization so does the following template still holds Primary Keyword - Secondary Keyword | Brand Name will anything be impacted if I eliminate the spaces between the hyphen, will search bots be still able to treat the first one as a priority and the second as the secondary? Primary Keyword-Secondary Keyword | Brand Name thank you
On-Page Optimization | | lina_digital0 -
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 -
Understanding why our new page doesn't rank. Internal link structure to blame? + understand canonical pages more.
Hi guys. Sorry it's an essay...BUT, i think a lot of you will find this an interesting question. This question is in 2 (related) parts, and I imagine it would be an 'advanced' SEO question. Hoping you guys can help bring some real insight 🙂 Always amazed at the quality for this forum/ community. **Context... ** We had a duplicate content issue caused by this page and it's product permutations, so we placed canonical tags on all the product permutations to solve it. Worked a treat. However, we now have more **product ranges. **We now sell Diaries, Notebooks & Music books, which are clearly different from one another. So...we've placed canonical tags on all the product permutations leading back to the 'parent' theme. In other words, all the diary permutations 'lead back' to the diary page. All the notebooks permutations 'lead back' to the main notebook page. So on and so forth. Make sense so far? Context end..... Issue. Amazingly our Diary page outranks our notebook pagefor the search term 'Design your own Notebook'. The notebook page is well optimised for this search term, and the diary page avoids the word 'notebook' altogether (so no keyword cannibalisation going on). Possible reason? Our Diary page has a vast amount of internal links to it throughout our site. The notebook page has only a few. Could this be the issue? If so, what reading/ blogs/ content/ tools would you recommend to help understand and solve this problem? i.e) Better understanding internal link structure for SEO. 2nd part of the question (in the context of internal linking for SEO). When there are internal links to a page with a conical tag does that 'count' towards the 'parent page', or simply towards that specific page? I really hope that makes sense. If it's clear as mud just shout. Isaac. EDIT: All pages in question have been indexed since we added these changes to the site.
On-Page Optimization | | isaac6630 -
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 -
Moz showing 384 description duplicates on my ecommerce store.... when I download CSV, most pages are coming from my WordPress Blog, why?
Hi, I am trying to investigate why I am getting 384 description duplicates on my ecommerce store (www.doggie-diva.com)? When I download the CSV file from MOZ, the majority of the pages they refer to are pages from my Word Press blog, which is hosted on a different server (blog.doggie-diva.com). I do have a link from my website to my Word Press blog and vice versa. Can you please explain to me why this is happening when I don't have duplicate content? Example of a page flagged from www.doggie-diva.com with duplicate content (http://blog.doggie-diva.com/tag/dog-gymnastics. Thanks, Rachel <colgroup><col width="549"></colgroup>
On-Page Optimization | | doggiedivalicious
| |0 -
Blank Title and Description Tags
Hi guys. Some times web platforms that I do work on have pages that I normally do not optimize. They more often than not have blank meta titles and meta descriptions. If I put titles and descriptions on these pages, no matter how minor, would it help the site as a whole to rank better? Thanks!
On-Page Optimization | | oomdomarketing0 -
Does the title tag on the home page affect sub-pages?
Hello. I am thinking of changing our home page title tag to include our two most valuable keywords from two of our sub-pages. Would this help the rankings of those two sub-pages? Thank you!
On-Page Optimization | | nyc-seo0 -
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