WordPress SEO by Yoast
[resolved] Option to turn off Canonical URLs (5 posts)

  1. Toshi Yoshida
    Posted 3 years ago #

    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.


  2. Joost de Valk
    Plugin Author

    Posted 3 years ago #

    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' );

  3. Toshi Yoshida
    Posted 3 years ago #

    Hi Joost,
    Thanks very much I appreciate the help.

  4. miketopher
    Posted 3 years ago #

    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

  5. shariarkuasa
    Posted 2 years ago #

    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: http://getandroidstuff.com/search/live+wallpaper/page/53/

    But in the source it shows canonical urls as:
    <link rel="canonical" href="http://getandroidstuff.com/search/live%2Bwallpaper/page/53/" />
    <link rel="prev" href="http://getandroidstuff.com/search/live%2Bwallpaper/page/52/" />
    <link rel="next" href="http://getandroidstuff.com/search/live%2Bwallpaper/page/54/" />

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic