How do I remove 'sold out' badge on the featured collection homepage ONLY?

tranwei
Visitor
2 0 1

would like to have the sold out badge removed on all products only showing on homepage

Replies 2 (2)

tranwei
Visitor
2 0 1

please help!

PageFly-Oliver
Astronaut
878 190 171

Hi @tranwei ,

 

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: Paste the below code at the bottom of the file -> Save

 

{% if template.name=='index' %}
<style>
[class*='badge']{
display:none !important
}
</style>
{% endif %}

 

 

Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.