Stop WordPress from outputting the canonical link tag

I had a page whose content varied depending on the query string parameters you gave it, so I definitely needed to remove the canonical tag.

Amplify’d from

You can do this quite simply by adding the following to your theme’s functions.php:

# Remove WordPress' canonical links
remove_action('wp_head', 'rel_canonical');



This entry was posted in Development, Uncategorized and tagged , , , , . Bookmark the permalink.