Microdata manual removal - about elements which are identified by itemprop

Topic summary

Manual removal of schema.org microdata (itemprop attributes) from a Shopify theme is questioned: whether to delete meta/link tags and a nearby form tag. Clarification: forms are separate; proximity does not imply they’re connected, so removal decisions should be independent.

Guidance: keep microdata if you want search engines to understand product Offers/stock; remove it if you don’t. Caution that stripping microdata can harm SEO and social sharing, and may affect Google Merchant Center.

A new issue appears: literal “offers” text showing on the product page. Cause identified as malformed HTML—attribute code placed outside the opening

tag; fix by putting attributes inside the tag and consider rolling back the theme file via Shopify’s rollback feature.

Additional cautions: some divs are containers; if you remove attributes, ensure you don’t leave orphaned closing tags. Test rigorously and understand how systems interact before deleting.

Open questions: whether to delete href links to schema.org when removing itemprop wasn’t conclusively answered. Outcome: the user plans to leave microdata, focus on resolving Google Merchant errors, and continue testing.

Key terms: microdata (embedded structured data), itemprop (property field in microdata), schema.org (shared vocabulary), SEO (search engine optimization), Google Merchant Center (product listing system). Images of code/screenshots are central to diagnosing the issue.

Summarized with AI on December 19. AI used: gpt-5.

hello, now I am manually removing microdata from my Shopify store and I want to confirm few things.

I understand that meta and link elements in the screenshot above, which are identified by itemprop, need to be removed (I read this in schema.org article). What about form elements? it comes directly underneath and looks like they are together.

I wasn’t sure as I was editing it directly in the Shopify backend, but now I am looking at the whole thing in Visual Studio Code, it looks like all three meta, link and form lines should be removed up to >. Is this correct? or just meta and link elements, and leave the form line intact?

Thank you for taking time to read (and hopefully to answer) :grinning_face_with_smiling_eyes: have a lovely day!

Another thing for example: in this case, I understand that you delete itemprop+“offers”, then you can delete the meta and link lines underneath. What about href="http://schema.org/… bits? does this line stay, or needs to be deleted?

No schema data, and forms are separate things.

Proximity != connectivity.

Do you want search engines to know if an item is an offer, is in stock or out of stock? yes then don’t remove, no then remove.

Got it, thank you very much!

I will leave it alone then, thank you.

oh I just realized that there is something weird showing on the product page regards offers.

Not sure when that started to show, but I haven’t deleted files without microdata yet so it must be from something else. where can I correct this? the codes around this line looks like this.

rest of the line

under product-template.liquid, there were many microdata and my first post in this forum was to ask whether it is safe to delete line 79 - 85 (people said YES). but above that, there are 6 meta elements, can I delete the whole thing, or just itemprop=“url” etc?

wasn’t sure those itemprop elements appear under meta or link, then the whole element should be deleted?

sorry for all these basic questions.

is closed early , such attribute code needs to be inside an element tag otherwise it gets treated as just text for display: <elementname …attributes code …>

So should be : <div class=“notlf” …attributes code … >

If the file was changed try a file rollback https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/edit-theme-code#roll-back

Merchants that need theme repair services or customization contact me for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

1 Like

If you want to undermine search engine crawlers, prevent good SEO, or social sharing for that product just remove the code and test if the website still works.

Some of those divs are probably containers with closing tags, so either remove attributes or also remove the orphaned closing tags.

Your removing things as part of system-B that are inside system-A without going to first principles to understand what they do when combined.

Nor explaining the goal https://xyproblem.info/

So no one can give you an actually accurate yes/no answer that isn’t just bias confirmation of self prescribed work.

Test rigorously, Good Luck.

1 Like

Thank you for taking time to answer in any case, I really appreciate it. first time I removed those codes did not yield any problems so I guess that is the best we can do for now.

We have multiple freelance programmers who worked on the shop over years so it is a bit of a mess. my goal for now is just trying to work on removing errors for Google Merchant as we want our products to appear on their shopping listing etc & run Google Ads.

Yeeeees! test test test! thank you again Paul!

thank you again for your feedback Paul. appreciate it very much. sorry for all these rudimentary questions, I should be learning some more basic things.