Home Forums Basel support forum Create a review, stars don't change once clicked. Reply To: Create a review, stars don't change once clicked.

#41058

debijohnson
Participant

This actually works on my shop page when not sorted. I wish you could have pointed me to this but it did work!

Added code to my functions.php file:
remove_action(‘woocommerce_after_shop_loop_item_title’,’woocommerce_template_loop_rating’,5);
add_action(‘woocommerce_shop_loop_item_title’,’woocommerce_template_loop_rating’,5);

Then added custom css:
.product.basel-hover-alt .star-rating {
display: block;
}

Works just how I had hoped!

I also added color to the stars instead of having them black by default:
.star-rating span:before {
color: #e87706 !important;
}

So I don’t know if that helped too, or just changed the color, but I’m happy it’s working!