Hide stock level when 0 - Stiletto theme

Hi there,

I would like to hide the stock level section when a product is out of stock. So the ‘out of stock’ text is gone.

stock level indicator block:

website

How can I best do this?

Thanks!

Hey @INFRA

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to solve your problem then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed


Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->
before the body ----->
if this code work please do not forget to like and mark it solution

Rather then editing theme code I’d try this in "Custom CSS’ setting:

[data-stock-category="empty"] {
  display: none;
}