Site logo

Archived topic

Review stars showing up twice on product archive pages

11 replies · Started by Georgi on October 3, 2022

Viewing posts 1–12 of 12

Hello GP Team,

Long time no hear. Unfortunately, I need your help again.

I updated the theme and all other plugins on my staging website before doing it on the live and the review stars are now shoing up twice on product archives.

6 months earlier I had this problem and I solved it but now I can't remember how I did it...

Can you take a look, please?

Kind regards,
Georgi

Hi Georgi,

In Appearance > Elements, can you try setting "Rating" Hook Element to draft?

Hi Fernando,

I set it to draft and the first row of stars got removed. However, the second row stays and it's without the review count as the first row had.

Any idea how to hide the second row which was left? The review stars from the Rating from Elements we made together some time ago has review count next to the stars and is ideal.

You can use this CSS to hide the default star rating:

.woocommerce .products .star-rating {
    display: none;
}

Hello,

This also hides the stars from the Element setting we have set before.

Can you activate the element so I can see how to exclude it from the code?

It's actually activated.
I have just left your CSS active and its hiding it.

I don't see my CSS, nor the star added by elements.

Can you clear your cache?

Okay, I cleared the cache.
You can do all that too, it's my staging site - I've left access in the first reply. I've to go to bed now :D

Change the CSS to:

.woocommerce ul.products li.product > .star-rating {
    display: none;
}

Good night :)

Ayee, works like a charm :) Thank you, Ying!

You are welcome!

This archived topic is closed to new replies.