disable review widget from certain product


Hi


How to disable the review widget from certain product


please could someone tell me the CSS shortcode for that because I placed the reviews at the end of the page



1 Comment

Hello there,


To disable/hide the review widget or the preview badge (stars) for a certain product you can use this condition in liquid code:


// For one product
{% if product.handle == 'productHandle'  %}
 <style>
 .jdgm-widget.jdgm-review-widget { display: none !important; }
 .jdgm-widget.jdgm-preview-badge { display: none !important; }
 </style>
{% endif %}


// For multiple products
{% if product.handle == 'productHandle' or
 handle == 'productHandle' or %}
 <style>
 .jdgm-widget.jdgm-review-widget { display: none !important; }
 .jdgm-widget.jdgm-preview-badge { display: none !important; }
 </style>
{% endif %}



Note: replace productHandle with the actual handle of the product you want to apply the CSS too

The product_handle is everything after product/ in the product URL


Please feel free to reach out if you have any more questions.


Kind regards

Login or Signup to post a comment