Repair Canonical tag showing twice on an AMP web page
RankMath is gaining reputation for WordPress web optimization plugins. Appears like direct competitors for Yoast.
I assumed I would strive it, and all went nicely, aside from the issue I observed when Google listed my new put up.
Do you see the message – Your web page incorporates AMP implementation errors. ?
I used to be curious what it’s and tips on how to repair it, so I went to the Google AMP inspection software and entered the URL manually and received the small print of the issue.
As you may see, the issue is {that a} canonical tag seems twice.
Are you in the identical scenario as me? Don’t fret, you may resolve it like I did.
For that I exploit AMP for WP plugin. I am undecided if this drawback can be with one other plugin, however this instruction is for AMP for WP with RankMath.
- Go to AMP >> Settings >> web optimization
- Choose an web optimization plugin like Rank Math web optimization
- Be certain Canonical of Rank Math is chosen (inexperienced)
- Saving Adjustments
That is all!
Let’s confirm, go to the Google AMP inspection software and enter the URL to check the URL. And, as you may see, it is fastened!
I hope it helps you retain the AMP pages error free.