This topic has 4 replies, 2 voices, and was last updated 2 years, 7 months ago ago by Rose Tyler
On my website, in the Xstore theme under my rating tab, the options for rating are displayed in a row and start with a 1-star rating first, then 2-stars, and so on like this: 1 star, 2 stars, 3 stars, 4 stars, 5 stars
With the 1 star is the first option.
I look through the code and in woo commerce, the stars options are displayed like this in a column
5 stars
4 stars
3 stars
2 stars
1 star
How do I make the stars display just like the woo commerce option with the 5 stars first?
What file do I have to edit to have a 5-star rating option first on your rating on the single product page section leave a review like this
5 stars
4 stars
3 stars
2 stars
1 star ?
Hello,
Add the next code in Theme Options > Theme custom CSS:
#review_form .stars span {display: flex; flex-direction: row;}
#review_form .stars .star-1 {order: 5;}
#review_form .stars .star-2 {order: 4;}
#review_form .stars .star-3 {order: 3;}
#review_form .stars .star-4 {order: 2;}
#review_form .stars .star-5 {order: 1;}
Regards
Thank you!
You’re welcome!
We would be grateful for your review if you like our theme https://themeforest.net/item/xstore-responsive-woocommerce-theme/15780546
Regards
Tagged: order display, single-product page, star rating, templates, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up