Welcome to another Tech Fix on how to solve AMP issues, powered by Soft-us Technologies. Today, we will be solving common AMP issues site administrators/webmasters/publishers may encounter using WordPress. Kindly use the comment section or contact us on social media for your questions.
Alright, let dive right in.
Every webmaster who has been involved with the Google AMP project will almost certainly run into AMP (accelerated mobile pages) troubles at some point. The majority of them are simple to repair. However, you could get trapped attempting to figure out and fix specific AMP issues at times.
Based on my experience, I’ve decided to compile a list of the issues I’ve encountered when using Google AMP by Automattic, as well as how I resolved them.
It is highly advised that you validate your WordPress website with Google Search Console after setting up Google AMP in WordPress.
Error reports about any AMP issue identified on your website will be emailed to your email address on occasion. Follow the link supplied to your email address to learn more about the AMP error.
My Ultimate solution on how to solve AMP issues
Now, I am giving these tips below based on Personal experience. So, if you have tried solutions by other blogs and have not yielded positive results or you do not just understand what to do. These tips are for you:
- Remove/uninstall any plugin that is not absolutely necessary for your site to function and satisfy your visitors. Save plugins I recommend for WordPress are Jetpack, Google site kit, Accelerated Mobile pages (AMP), SEO plugin, Classic editor, Contact form 7 etc.
- Ensure a Schema and structured data plugin is installed. It will help solve html tag issues.
- Ensure you deactivate any third-party ads insertion plugin (Advanced ads etc.).
- Using a cache plugin is safe. I recommend WP Fastest Cache.
- To check your progress in resolving AMP issues, use the AMP Validator. Click here
Other things you can check out
Errors in Google AMP and how to fix AMP issues
Invalid URL for HTML attribute ‘href’ in tag ‘a’: how to repair
When you receive an error message such as Invalid URL for HTML attribute ‘href’ in tag ‘a,’ it simply means that a link on your website links to an inactive domain or creates a 404 error.
By clicking on it and testing the live version, you can correct this error. Your AMP page will be live-tested and rendered in HTML. The line on which the error occurs will be marked (highlighted).
If you don’t know how to read html codes, you can simply go to that page and test all of the links. Any link that creates a 404 error or a site doesn’t exist error should be corrected or removed.
How to fix AMP issues “The tag ‘*********.js script’ appears in the page many times.”
Make sure you don’t add a.js script to your AMP pages more than once. Otherwise, AMP will report an error.
How can I remedy an AMP content mismatch?
In AMP, content mismatch simply implies that a previously indexed page no longer has a key element indexed with it. It was a YouTube video I embedded in my case, and the video was removed.
Not only can embedding a removed video harm your site’s UX, but it will also cause AMP issues.
You can either remove or change the page element to remedy this problem. After that, notify Google that the AMP problem has been resolved.
I can assure you of better rankings on google and other search engines if you follow these tips diligently.
Thank me if you like this post “How to solve AMP issues” by following Bestof9ja.ng on Social media and stay tuned to our tech posts.