How to Fix Schema Markup Errors for AMP Plugin?

I’ve started to use AMP plugin along with my Schema WordPress plugin to experiment how things work out and try to get my sites to benefit from this experience. So, I will share with you a few tips on how to solve those errors you get when you test your AMP posts in Google’s Structured Data Testing Tool.

What AMP Plugin Does?

The AMP plugin enable Accelerated Mobile Pages (AMP) on your WordPress site, which is an an open source initiative that aims to provide mobile optimized content that can load instantly everywhere.

 

I think you will find the AMP plugin useful, it may take a few weeks till Google pick that up though, so give it some time!

You can download AMP plugin or install it within your WordPress dashboard.

Fixing Schema Errors

The errors I am talking about here is within the schema markup, this happen mostly because a missing markup. The reason why AMP plugin fail on this, is because it doesn’t get quite enough updates to follow up with changes that Google push often.

One error I’ve got was from a missing image object that is part of Publisher schema.

AMP Schema Error

The problem here is you will need to add an image to present the Publisher Organization logo. AMP plugin doesn’t have a way to do that, maybe AMP will need to have this in a setting item, but AMP doesn’t have a settings page, it’s a very simply activate and forget plugin.

The Solution

To solve this issue, I’ve integrated a function into the Schema plugin, which solve the errors in the Structured Data Testing tool.

Thankfully, the AMP developers has provided a way to override the schema markup output, I’ve found a filter within the plugin to allow me to do it, so I’ve hooked into that to use Schema markup output instead, which worked great and the Testing Tool errors has gone.

So, since I am using the Schema plugin, my sites got more detailed schema markups than what APM plugin will give.

About the Author Hesham Zebida

I create websites, and I develop WordPress plugins and Thesis Skins. I am a social network lover. I am also the night creature who works hard to keep this project up. Owner and founder of the Famous Blog.

follow me on:

Leave a Comment:

4 comments
Add Your Reply