hide star rating based on Attribute swatches
-
Hi
can you help me about this:(please see attachment)
i need to show star rating OR Attribute swatches , not BOTH of them at once.
thanks
Attachments:
You must be
logged in to view attached files.
Hello,
With the help of the below code, you can hide the star rating, while the color swatches remain.
.product-grid-item .wd-star-rating {
display: none;
}
If there’s anything else we can do, please get in touch.
Kind Regards
well , the code will hide all the star rating for whole product while i need to hide stars just when there is no color swatches available for each product
the css should work like a switch between stars and swatches,possible?
Hello,
The below code will hide the star rating for the products that don’t have color swatches. Enter it into the “Global Custom CSS” area.
.product-grid-item.product-type-simple .wd-star-rating {
display: none;
}
As for the “switch”, that is impossible.
Keep me informed of any issues.
Kind Regards
-
This reply was modified 3 years, 3 months ago by
Luke Nielsen.
Hello,
Glad that everything is sorted out!
Always remember that you can reach out to us with any questions you may have.
We wish you a splendid day!
Kind Regards
The topic ‘hide star rating based on Attribute swatches’ is closed to new replies.