Magento 2 Tips – How to remove default Schema.org Microdata
Google Structured Testing Tool
Remember Magento 1 and it’s serious lack of SEO solutions that come right out the box? Well Magento 2 has taken a giant leap forward by including Schema.org Microdata (Rich Snippets) support.
As much as I want to give them top marks for effort, it’s a little broken. At the time of writing this article, the output of Offer Price includes the currency symbol. However, Google have changed their policy so any symbol included with the price pulls up a warning. It can also conflict with 3rd party extensions by contradicting fields.
Not only that, but the selection of microdata is a little limited and not configurable in the backend. So at this stage you might think “sod it, I’ll grab an extension”. Or perhaps your theme might come with Microdata support already like Porto for Magento 2.
In cases like these, you will end up with 2 or more sets of microdata when checking using Google Structured Testing Tool.
I ran into the exact same problem. Yes I could have left it, but it was annoying me. So I did some research and came across this article by Mageworx, which explains how to build your own extension to remove default Schema.org Microdata.
I don’t want to take credit for this code, but what I have done is package the extension for you. That way you won’t have to build the extension from scratch.
You can access this extension via the Digital Startup Github. If you’re a developer, please feel free to contribute to the code.
Now you are free to proceed with other 3rd party extensions without worrying about any conflicts.
Big shout out again to Mageworx for providing the instructions.
MAGENTO 2 SPECIAL OFFERS
► 20% off Managed Hosting (Cloudways): (Promo: DS20)
► Claim Credit on Unmanaged Hosting (DigitalOcean):
► Up to 30% off Extensions: