Home Forums WoodMart support forum Code to disable OUT OF STOCK Label does not work

Code to disable OUT OF STOCK Label does not work

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #523020

    AmyPotatoHouse
    Participant

    Hi
    I had added the code to stop the SOLD OUT label being shown a few months ago. This worked well.

    This was removed without my prior knowledge by one of your staff, while trying to fix another problem.
    https://xtemos.com/forums/topic/custom-ccs-appearing-at-top-of-page-again/#post-521632

    I have now added the exact same code back.

    The code now does not work.

    When an item is sold out, I do not want the SOLD OUT label on the products as I have a plug in that have labels to say “coming soon” or “Sold out for the Season” I have disabled this plug in but the SOLD OUT label is still there.

    The code I had been given before was

    body .labels-rounded .out-of-stock {
    display: none;
    }
    body .labels-rectangular .out-of-stock {
    display: none;
    }

    This was working earlier. Can I please have an update for this code.

    This should be in your settings – like the HOT label which can be switched off very easily.

    Thank you

    Amy

    #523021

    AmyPotatoHouse
    Participant

    Here is a link to a product page

    #523248

    Hung Pham
    Keymaster

    Hi AmyPotatoHouse,

    Thanks for reaching to us.

    Please add below Custom CSS code to Theme Settings > Custom CSS > Global custom CSS

    .single-product p.stock.out-of-stock{
    	display: none;
    }

    Regards,

    #526558

    AmyPotatoHouse
    Participant

    Hi
    (btw I did not get an email that this had been replied to)
    thank you – but this is the code does not work
    I have cleared the cache

    See this product and it is still there

    Thank you

    https://www.potatohouse.co.uk/product/international-kidney/

    #526639

    Hung Pham
    Keymaster

    Hi AmyPotatoHouse,

    Please remove previous Custom CSS code and try below one.

    .single-product .product-labels span.out-of-stock{
    	display: none;
    }

    Regards,

    #526836

    AmyPotatoHouse
    Participant

    this code works
    Thank you
    Amy

    #526956

    Hung Pham
    Keymaster

    Hi AmyPotatoHouse,

    Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!

    Regards,

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

The topic ‘Code to disable OUT OF STOCK Label does not work’ is closed to new replies.