How can I remove the outdated theme schema myself?

To remove an outdated schema from theme files, first, you should get a Rich Result Test result and detect the warnings. We categorize these warnings/errors into 2 groups. The first one is ‘ld+json’ warnings and the second one is ‘itemscope’ warnings. When you click on each warning in Rich Results Test results, you should be able to view the HTML code related to the warning. In that HTML code block, if you see ‘script type=" application/ld+json’ that means it's a ld+json warning. But if you see the keyword ‘itemscope’ somewhere around there, that means it's an itemscope warning.

After detecting the warning/error type, you should download all their theme files, and then do a search on all of these theme files. Simply what you need to do is search for the warning type, match it with the warning/error and then fix it by modifying the code manually.

For example, let's say we have a ld+json warning. In this case, if you have a MAC device you can go to the parent folder and do a search like this:

grep -Ri ld+json -l

And if its an itemscope warning you can search it like this:

grep -Ri itemscope -l

*(If you have Windows, you can use findstr)

These codes should give you all the files including ‘ld+json’ / ‘itemscope’

After finding the files, now you should go to the file on the theme editor, and manually search ld+json (or itemscope). You might get multiple results, or none. After finding the code blocks including these keywords, you should match it with the HTML code coming from the RRT warning. If they are sure they are the same, in this case, they should do the following changes:

‘ld+json’ ——> change it to just ‘json’

‘Itemscope’ —-> add an underscore and make it ‘itemscope_’

Just make sure they are the same code blocks. For example, there might be some LD+JSONs coming from an Article schema. So, in the RRT, if you have a warning from the Product schema you shouldn’t modify it because they are not the same code blocks.

After doing these steps they should see warnings should be gone.

Don’t forget to submit a sitemap for Google!

Last updated