Canonical tag
-
I have a canonical tag I want to remove and I found this:
function wpseo_canonical_exclude( $canonical ) {
global $post;
if (is_single( ‘348’ )) {
$canonical = false;
}
return $canonical;
}It is said that we place this code in function.php.
I’m new to wordpress, is it function in wordpress or in theme folder ?
Thank you.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Canonical tag’ is closed to new replies.