Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] remove canonical tags in header

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Joost de Valk


    Only if you can code, if you return false on the wpseo_canonical filter it’ll remove the canonical. But to be honest; you might as well disable the plugin if you don’t want its benefits.

    could you please describe it more detailed where to pu the code inside?

    Plugin Author Joost de Valk


    only if you tell me why you want to disable canonical 🙂

    The canonocal tag revers to the main page. this link revers again to the main page which is not very useful. canonicals make sense if you want to rever on two ore more sub-pages with similar content and you want to bundle the strenghth of this pages.

    Plugin Author Joost de Valk


    You obviously don’t really understand what it does.

    He may not understand but he pointed out a valid issue and your response was’t that helpful. We have a site with a plugin that dynamically displays more than 42,000 images on unique pages, each page with its own SEO friendly permalink / URL.

    Your plugin ads exactly the same canonical url to the top of each of those pages. I certainly don’t want them all to be seen as copies of the same page, because they are not.

    Love your plugins, especially this one. Hope the solution isn’t to just “disable the plugin because I don’t want the benefits”

    Just to elaborate on that here are some examples: Your plugin added the flowing code, exactly the same code to all our pages. This code:

    <!– This site is optimized with the Yoast WordPress SEO plugin v1.2.5 – –>
    <link rel=”canonical” href=”” />
    <meta property=’og:locale’ content=’en_us’/>
    <meta property=’og:title’ content=’Chords – Guitar Chords 247’/>
    <meta property=’og:url’ content=’’/>
    <meta property=’og:site_name’ content=’Guitar Chords 247’/>
    <meta property=’og:type’ content=’article’/>
    <!– / Yoast WordPress SEO plugin. –>

    You could find that on this page:

    And on this one…

    And on this one…

    And I could could go on to every page. So the way I see it, adding exactly the same canonical tag to the top of each of these pages will tell Google, that they’re all basically a copy of one page, this one:

    Let me know if there’s something I don’t understand.

    PS – It may be that by the time you read this we’ve removed the plugin just to prevent this from happening so I apologize if you cannot see this on the site right now. I just have no way of telling how long it will be before you respond and cannot leave this code up till then. 🙂



    To remove it, simply add the following code to the end of your theme’s functions.php file, just before the closing php tag.

    // Remove Canonical Link Added By Yoast WordPress SEO Plugin
    function at_remove_dup_canonical_link() {
    	return false;
    add_filter( 'wpseo_canonical', 'at_remove_dup_canonical_link' );

    Joost, stop doing this. Stop putting energy into criticizing and then leaving, he has a valid point. I have been looking around for support and have experienced this multiple times, not good man.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] remove canonical tags in header’ is closed to new replies.