• Resolved Hahmo

    (@hahmo)


    Hi, in need to remove canonical created by SEO Framework from all pages on my site. How to do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    The canonical URL is probably the most critical tag TSF outputs. With it removed, your site may face duplicate content and crawling issues.

    Could you explain to me the reason you’d like it removed? I haven’t encountered any other plugin that could do it better, but I have seen many plugins messing up the canonical URL, something we should try fixing instead.

    Still, if you believe that your reason is good enough to remove this feature entirely, use the following snippet; however, I cannot recommend using it:

    add_filter( 'the_seo_framework_rel_canonical_output', '__return_false' );
    
    Thread Starter Hahmo

    (@hahmo)

    Thanks, this works, didn’t find the right function to filter right away and got lazy – thanks for answering! There is nothing wrong with the plugin, it works just fine, but with this client I have a special buildup, and I must generate all canonicals by myself.

    Best, Antti

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove canonical?’ is closed to new replies.