remove “new” label if the product is out of stock
-

RDParticipant
Hello,
If I have a new product that I have 1 unit and a user bought it, so now it is out of stock.
on the site I see 2 labels:
1. out of stock
2. new
in case the product is both of them I would like to show only the out of stock label.
how can I do that?
thanks.
Hello,
Define the code below in Theme Settings -> Custom CSS:
.product-grid-item.outofstock .product-labels .product-label.new {
display: none;
}
.single-product .outofstock .product-labels .product-label.new {
display: none;
}
Clear the cache and recheck the issue.
Kind Regards