Duplicate canonical URLs in WordPress
-
Hi everyone,
I'm driving myself insane trying to figure this one out and am hoping someone has more technical chops than I do. Here's the situation...
I'm getting duplicate canonical tags on my pages and posts, one is inside of the WordPress SEO (plugin) commented section, and the other is elsewhere in the header. I am running the latest version of WordPress 3.1.3 and the Genesis framework.
After doing some testing and adding the following filters to my functions.php:
<code>remove_action('wp_head', 'genesis_canonical'); remove_action('wp_head', 'rel_canonical');</code>
... what I get is this:
With the plugin active + NO "remove action" - duplicate canonical tags
With the plugin disabled + NO "remove action" - a single canonical tag
With the plugin disabled + A "remove action" - no canonical tagI have tried using only one of these remove_actions at a time, and then combining them both. Regardless, as long as I have the plugin active I get duplicate canonical tags.
Is this a bug in the plugin, perhaps somehow enabling the canonical functionality of WordPress?
Thanks for your help everyone.
- Robert Dempsey
-
Hi Matthew - not that I saw. It appears to be a feature built in and non-configurable. Lot's of indexation options but nothing for canonicals.
-
Hi,
DOes the plugin have an option to disable canonical URL's? For example in platinum SEO its just a tick box, when its ticked the plugin and WP itself adds the canonical tag, untick it and just wordpress adds it automatically.
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
-
Duplicate content
I have one client with two domains, identical products to appear on both domains. How should I handle this?
Technical SEO | | Hazel_Key0 -
Is a canonical tag required for already redirecting URLs?
Hi everyone, One of our websites was changed to non-www to www. The non-www pages were then redirected to avoid duplicate issue. Moz and Screaming Frog flagged a number of these redirected pages as missing canonical tags. Is the canonical tag still required for pages already redirecting? Or is it detecting another possible duplicate page that we haven't redirected yet? Also, the rankings for this website isn't improving despite having us optimising these pages as best as we could. I'm wondering if this canonical tag issue may be affecting it. Thank you.
Technical SEO | | nhhernandez0 -
Multilingual -> ahref lang, canonical and duplicated title content
Hi all! We have our site eurasmus.com where we are implementing the multilingual.
Technical SEO | | Eurasmus.com
We have already available english and spanish and we use basically href lang to control different areas. First question: When a page is not translated but still is visible in both langauges under /en and /es is it enough with the hreflang or should we
add a canonical as well? Nowadays we are apply href lang and only canonicals to the one which are duplicated
in the same language. Second question: When some pages are not translated, like http://eurasmus.com/en/info/find-intern-placement-austria and http://eurasmus.com/es/info/find-intern-placement-austria,
we are setting up the href lang but still moz detects title and meta duplicated (not duplicate page content).
What do you suggest we should do? Let me know and thank you before hand for your help!0 -
Changing URL of posts
HI, I need to change the urls and permalink structure of my blogposts. How I have to deal all this with google? Do I have to re-submit the pages to google with fetch as google? Will google display duplicate content of the same article ( having changed the url) or will it automatically replace the old url with the new ones? Tx for your support guys!
Technical SEO | | tourtravel0 -
Wordpress New Category URL's
Were just about to redesign our site and put all the blogs over to the new site. Previously most blogs have been added to the uncategorised section of the blog and I'm now weighing up the benefit of sifting through all the blogs and changing them to relevant categories. From an SEO perspective would it be better to Leave them in their current category but start afresh with all new blogs by adding them to relevant categories? Work out which blogs should go in which new category and 301 all previous URL's to the new one. Obviously number one will take a lot more time than number two.
Technical SEO | | acs1110 -
Wordpress multisite and SEO
Newbie question. I have several keyword list I am trying to market - (My website is : http://www.soobumimphotography.com/) San Antonio wedding photographer, family photographer San Antonio sports photographer in san antonio headshot san antonio engagement photos san antonio I think it's too broad and thinking about getting separate sites for them. I know I can make urls something like this http://www.soobumimphotography.com/headshot using multisite function and planning to redirect it to www.sanantonioheadshots.com etc Is this good idea to do so? Should I get a new hosting and domain and start it all over again. Thank you
Technical SEO | | BistosAmerica0 -
Wordpress creates duplicate Title Tags.
Pasted from GWT with relation to Duplicate Title Tags: Gold News | FalkosGold - Page 2
Technical SEO | | MangoMM
/category/scrap-gold-news/page/2/
/tag/scrap-gold-news/page/2/ 2 Gold News | FalkosGold
/category/scrap-gold-news/
/tag/scrap-gold-news/ 2 Scrap Platinum | FalkosGold
/gold-platinum-prices/scrap-platinum/
/tag/scrap-platinum/ 2 Any idea how I fix this? Screenshot attached. Many thanks bVJeI.png0 -
Ping Services for Wordpress
I have been trying to research adding ping services to the default list in wordpress, which only includes http://rpc.pingomatic.com/ A lot of the articles that I have come across seem to be quite old, can anyone tell me if this is still relevant and if so, which services do you find to be worthwhile using? Thanks
Technical SEO | | pugh0