How can I reposition the star ratings on my archive and category pages? I would like to starts to be seen under the price, rather than in between the buy it now and price.

I've tried unhooking and floating left, but it doesn't seem to work. See my code below and here is a link to my site. Thank you!!

Functions.php:

remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );

add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 15 );

Style.css

.star-rating span
{
float: left;
}
有帮助吗?

解决方案

Try this:

.star-rating {
position: absolute!important;
margin-left: 25px!important;
bottom: 0px;
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top