WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Disable Canonical URL's (8 posts)

  1. getrouty
    Member
    Posted 2 years ago #

    Is there a way in the settings to disable the canonical url for this plugin? I am already generating one for my dynamic page, and this one is screwing it up. Sure would be nice if there was just a checkbox to uncheck...

    Thanks!

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. nexusmedia
    Member
    Posted 2 years ago #

    I would also like to be able to disable the canonical URL... the Yoast SEO plugin is creating a canonical non-friendl URL for a WP Custom Content Type and is screwing up the indexing for the search engines. Any ideas??

  3. nexusmedia
    Member
    Posted 2 years ago #

    I temporarily fixed my problem by commenting out line 10 in class-frontend.php:

    remove_action( 'wp_head', 'rel_canonical' );

    But it will not fix once I upgrade the plugin. It would be nice to have some options as to when to use the canonical URL or disable it altogether.

  4. getrouty
    Member
    Posted 2 years ago #

    Yeah I modified the plugin by passing false as the value for the echo param where it is calling the canonical function.. either way, it's a hack and as you said will be over-written once upgraded. Thanks for your response, hopefully Yoast will add some options.

  5. computerartsde
    Member
    Posted 2 years ago #

    Thanx for your hints ... it works nice, but of course only to the next update. I need this option to deactivate canonical urls too.

  6. Chris Van Patten
    Member
    Posted 2 years ago #

    I'm also interested - I print canonical URLs manually (cleaner source/no self-closing slash because I'm HTML5-crazy like that). The ability to stop that output would be great.

    Thanks!

  7. benz001
    Member
    Posted 2 years ago #

    It would be great to hide them, but I've found I can work around most problems with dynamic urls from custom post types/taxonomies by setting explicit canonical URLs for them.

    It wasn't immediately obvious how to do this (at least to me). Go to Yoast SEO > General Settings, untick the checkboxes against the problem post types and taxonomies. Then you can go to the custom taxonomy screens and edit the individual terms, you can put in a custom canonical URL there.

    This doesn't help when you hit the root url of a custom post type, I can't find a setting for that one, but any path through a category/tag/custom taxonomy to pages with using a custom content type can be manually overridden this way.

  8. Mark
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic