Remove Shopify Product Review metadata/structured data

Hello

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=”{{ product.id }}“>{{ product.metafields.spr.reviews }}”. 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.

Check this thread – there are some ways to do it https://community.shopify.com/c/Technical-Q-A/Either-quot-offers-quot-quot-review-quot-or-quot-aggregateRating/m-p/539813

1 Like

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

inserting the following script

{% if reviews_count > 0 %}
              
            {%- endif -%}

fixed it for me.

source: https://community.shopify.com/c/Technical-Q-A/Either-quot-offers-quot-quot-review-quot-or-quot-aggregateRating/td-p/539813/page/23

This code doesn’t work.

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