Home Forums WoodMart support forum remove “new” label if the product is out of stock

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #556470

    RD
    Participant

    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.

    #556514

    Luke Nielsen
    Keymaster

    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

Viewing 2 posts - 1 through 2 (of 2 total)