[Plugin: WordPress SEO by Yoast] Suggestion: Remove canonical per post or page
-
Hello,
it would be great to have the possibility to disable the canonical-tag per post or page. Right now, you can only change it.
I’m e.g using a special page template that displays different content based on certain parameters which are added to the post-slug like subfolders. But right now WordPress SEO adds always the same canonical entry. So the best solution would be do disable the canonical-tag completely.
I’m doing this right now be changing line 412 of class-frontend.php into
if ( ($canonical && !is_wp_error( $canonical )) && !stristr($canonical, '/slug_of_page/') ) {
Having the possibility to remove the canonical entry for a page in the page’s seo setting would be great.
This might also be useful for other occasions.
What do you think?
- The topic ‘[Plugin: WordPress SEO by Yoast] Suggestion: Remove canonical per post or page’ is closed to new replies.