Shopify themes, liquid, logos, and UX
I would like to hide star ratings for products that have no reviews. I'm using the Dawn theme and Stamped review app.
I've Googled the topic and tried inserting some code, but none are working for me.
Thanks in advance.
To hide star ratings for products with no reviews, you’ll need to add a conditional block to your theme where the star ratings are displayed. This requires basic developer skills.
Find the part of your theme files where the star ratings are coded.
Typically, it’s in a product-related file such as product-card.liquid, product-grid-item.liquid
Update the code to display star ratings only if the product has reviews. Use Stamped’s review data, such as review count or average rating.
Here’s an example of what the code might look like:
{% if product.stamped_reviews_count > 0 %}
<div class="stamped-stars">
⭐️⭐️⭐️⭐️⭐️
</div>
{% endif %}
❗️Make sure you’re using the right data from Stamped. Check their documentation or contact their support if needed.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024