Product Reviews: hide stars when no review

Highlighted
Tourist
27 0 1

Hello, 

I use Product Reviews to display a number of stars directly beneath the title of my product in product page

 

so this is my shop, first URL with comments and second URL without comments:

https://www.tresor-ethnique.com/collections/tibetain/products/pendentif-mandala

https://www.tresor-ethnique.com/collections/tibetain/products/pendentif-fleur-de-mandala

 

I would like to be able to hide Product Reviews when I have no comments

So I know how to remove the text when no comments (in the app), but I can't figure a way to remove the stars

 

Yet I know there must be a way, since the integration on Product Reviews in the collection page do not display anything when there are no comments

(see this URL for example: https://www.tresor-ethnique.com/collections/bijoux )

 

Any ideas?

Let me know, thanks ! :)

 

 

 

 

0 Likes
Shopify Expert
9420 9 1259

This is a super old post of mine that I assume is still valid:
https://freakdesign.com.au/blogs/news/41175105-remove-zero-rating-reviews-from-the-shopify-review-ap...

If you don't feel like reading the post the general idea is to add some custom CSS. This css:

.spr-badge[data-rating="0.0"] {
    visibility:hidden; display: none;
}

If that doesn't work anymore drop a reply and we can take a closer look.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Tourist
27 0 1

Worked like a charm, thank you so much! :)

0 Likes
Tourist
3 0 1

Hello,

I tried the code but it does not work for me? I am using Minimal theme.

1 Like
New Member
1 0 0

Also having trouble with it?  Your site doesn't specify where to install it, it just says "add to the bottom of your stylesheet."

I added the code to the bottom of theme.scss.liquid, is that the correct one?

I am still seeing the review boxes on my site.  www.zen-bazaar.com

 

Although, another question: if it's hidden when there are zero reviews...how does anyone have the ability to give the first review?

0 Likes
New Member
13 0 0

The review keeps glitching and showing it for a second and then it disappears. How do you fix this?

0 Likes
Tourist
3 0 1

Hi, the code does not work for me. Any other suggestions? :)

0 Likes
New Member
5 0 0

worked great for me on the debut theme. 

0 Likes
New Member
4 0 0

Amazing! It worked perfectly with my site!!

0 Likes