Remove the amphtml canonical in non amp pages
-
We have identified that the positioning of the amphtml canonical link in the <head> needs to be as high as possible in order to be picked faster.
Yoast hooks unfortunately push it quite down so i decided to manually add the amphtml tag in the head area and wanted to remove your code.
I have tried the following
add_filter( 'amp_frontend_show_canonical', '__return_false' );
and
remove_action( 'wp_head', 'amp_frontend_add_canonical' );
inside
functions.php
but nothing seems to remove the link.Any insights on this?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Remove the amphtml canonical in non amp pages’ is closed to new replies.