[Resolved] Need to remove "out of stock" text from Product Description

Home Forums Support [Resolved] Need to remove "out of stock" text from Product Description

Home Forums Support Need to remove "out of stock" text from Product Description

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #790059
    Nick

    I have a product that is not available yet, but I still want to advertise it on my site. If I remove the price, the “read More” button moves up into the space where the price used to be, and I don’t like the aesthetic. The solution I found is to mark the product as out of stock which keeps the button in place. However, I don’t like the phrase “out of stock” on the actual description page. Is there a way that I can remove that text? Thanks so much!

    #790141
    David
    Staff
    Customer Support

    Hi there,

    is it possible we can see the site so i can provide some CSS to hide it ?

    #791081
    Nick

    Sorry David, I had the coming soon page activated. I just updated the link in my original post that will take you to the product description page that I’m talking about. I just want to remove the red text that says “out of stock.” Thanks.

    #791090
    David
    Staff
    Customer Support

    Try this CSS:

    .woocommerce div.product .out-of-stock {
        visibility: hidden;
    }

    it will hide but won’t remove it so the content below it won’t shift up.

    #791196
    Nick

    Thanks David. Can you tell me where to put that code? I’m not a developer, I’m just a DIYer. I have Code Snippets, does it go in there, or somewhere else? Inside the theme CSS maybe?

    #791223
    Leo
    Staff
    Customer Support
    #791264
    Nick

    Thank you so much David and Leo. Worked like a charm. You guys are awesome!

    #791276
    Leo
    Staff
    Customer Support

    Glad we could help 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.