Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] Option to turn off Canonical URLs

  • Resolved Toshi Yoshida


    Canonical URL’s on my NextGEN gallery site cause large numbers of unique pages to be marked as non-indexable. My site must therefore run with canonical URLs OFF.

    Unfortunately WordPress SEO turns canonical URLs ON and unlike other SEO plugins does not (appear) to have an ON/OFF option. I see other entries in the forums where people have removed the WordPress SEO code segment managing canonical URLs so it appears this type of problem does impact other users.

    I would therefore like to suggest that perhaps this functionality can be added at a later release.

    A more complete description can be found at Yoast SEO and NextGen Canonical Issue.

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


    I’m not going to add a setting for it, as that is bound to confuse people, but adding this to your functions.php does it nice and simple:

    add_filter( 'wpseo_canonical', '__return_false' );

    Hi Joost,
    Thanks very much I appreciate the help.

    When i use this in my functions.php, it does remove the canonical url, but it also removes the OG:url property as well..

    my issue is the slug for my Static Home page is being used, canonically, and in facebook OG:url property, getting .com/home/


    is there something i can do to stop this, id like to use canonical urls too, but whats really important to me is to stop using the static home page slug, anywhere.

    Thank you



    HI, I’ve got a serious problem. I’m not experienced in WordPress. Please any help will be great.

    My WordPress site search result page url example:

    But in the source it shows canonical urls as:
    <link rel=”canonical” href=”” />
    <link rel=”prev” href=”” />
    <link rel=”next” href=”” />

    Which caused a lot of 404 errors in webmaster tools. I’m using your SEO plugin. How can i solve this issue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Option to turn off Canonical URLs’ is closed to new replies.