Fixing Canonical tag appearing twice on an AMP page
RankMath is gaining popularity for WordPress SEO plugins. Looks like direct competition to Yoast.
I thought to give a try, and all went well except the issue which I noticed when Google indexed my new post.
Do you see the message – Your page has AMP implementation errors. ?
I was curious to find what it is and how to fix so went to Google AMP inspect tool and enter the URL manually and got the issue details.
As you can see, the issue is with a canonical tag appearing twice.
Are you in the same situation as I was? No worries, you can fix it as I did.
- Go to AMP >> Settings >> SEO
- Select SEO plugin like Rank Math SEO
- Ensure Canonical from Rank Math is selected (green)
- Save changes
Let’s verify, go to the Google AMP inspection tool and enter the URL to test the URL. And, as you can see – it’s fixed!
I hope it helps you to keep the AMP pages error-free.
More great readings on WordPress
Understanding 301 Redirects for BeginnersTanish Chowdhary on June 16, 2022
A2 Managed WordPress Hosting is for The Professional BloggerHitesh Sant on June 10, 2022
Top 8 Platforms to Hire WordPress DevelopersGeekflare Editorial on June 6, 2022
Start Your Online Shop Today with Nexcess StoreBuilderHitesh Sant on May 25, 2022
How to Protect Your WordPress Site with iThemes Security ProHitesh Sant on May 7, 2022
6 Best WordPress Accessibility Plugins in 2022Tamal Das on April 22, 2022
Join Geekflare Newsletter
Every week we share trending articles and tools in our newsletter. More than 10,000 people enjoy reading, and you will love it too.