Remove Shopify Product Review metadata/structured data

3 0 1


I use the shopify product reviews w/ the warehouse theme.

In short, I would like to use the standard shopify product reviews form i.e "data-id="{{ }}">{{ }}". However, I do not want it to generate any structured data because it is causing errors on my site.


Is it possible to use shopify product reviews but not have it generate rich snippet data?

btw.. When I remove the form, I get no warnings regarding rich snippets.


Any pointers would be much appreciated. 

Replies 4 (4)

Shopify Expert
3482 282 1290

Check this thread -- there are some ways to do it 

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail
3 0 1

I read that thread and it have it working! thank you.

inserting the following script 

{% if reviews_count > 0 %}
              var target = document.getElementById('shopify-product-reviews')
              var observer = new MutationObserver(function(mutations) {
                $('#shopify-product-reviews [type="application/ld+json"]').remove();

              var config = { attributes: true, childList: true, characterData: true };
              observer.observe(target, config);
            {%- endif -%}



fixed it for me.


21 0 3

This code doesn't work.

New Member
9 0 0

@dealnest You need to make sure that it matches up with your selector.