Site logo

[Support request] How to deactivate canonical tag created by Generatoepress

Home Forums Support [Support request] How to deactivate canonical tag created by Generatoepress

Home Forums Support How to deactivate canonical tag created by Generatoepress

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2124896
    Abhishek

    Hi guys. There are two canonical tags created on all of my pages. One is by YOAST SEO, another one is by Generatorpress (Theme). How do I deactivate canonical tags in any one of them?

    #2125213
    David
    Staff
    Customer Support

    Hi there,

    you can try removing the one added by wordpress using this snippet:

    add_action( 'wp', function() {
        remove_action( 'wp_head', 'rel_canonical' );
    } );
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.