Viewing 1 replies (of 1 total)
  • dreamyblue

    (@dreamyblue)

    Hello,

    I also need to remove canonical tag. This is for a fully translated multilingual website. Acording to my informations, there is no use for the canonical in this case and the following tag should be used instead .

    rel="alternate" hreflang="X"`

    At the moment, WP SEO does not allow to remove the tag for a specific page or post.

    The only hack I know is to add a filter but it’ll remove the canonical in every pages.

    add_filter( 'wpseo_canonical', '__return_false' );

    Can anybody help me and tells me in which file shall I add this filter and in which line ?

    Thank you very much,

    Christophe

Viewing 1 replies (of 1 total)
  • The topic ‘How to remove rel=canonical attributes?’ is closed to new replies.