does amp plugin add canonical tags
-
Hi
i Have this custom functions in my theme functions.php
add_filter("wpseo_robots", function($robots) { if ( is_date() || is_year() || is_paged() || is_tag() || is_month()) { add_filter( 'wpseo_canonical', '__return_false' ); return 'noindex,follow'; } else { return $robots; } });
on my desktop version, everything is ok, but on amp version, I noticed that there are additional canonical tags being added
I’m still unsure what plugin added these canonical tags,but I’m suspecting amp plugin…if it is amp plugins who adding canonical tags, my question is there any setting or functions so I can disable it on specific pages (archive based etc )
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘does amp plugin add canonical tags’ is closed to new replies.