Removing the canonical link Yoast generates
-
I have an issue with the Yoast plugin, where adding the following to the function.php doesn’t remove the canonical link Yoast generates.
https://developer.yoast.com/features/seo-tags/canonical-urls/api
add_filter( 'wpseo_canonical', '__return_false' );
I’d like to remove all canonical links from everyone of my WP pages (Not posts).
In addition, I have another filter in my function.php file that removes the schema Yoast generates, which works. I’m completely lost to why the canonical filter doesn’t work.
Any help would be very much appreciated!
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Removing the canonical link Yoast generates’ is closed to new replies.