Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi can you help me please?
I need to hide the sold-out tag from my product catalog. I tried all the advice but it doesn't work for my theme.
My url: https://www.energetikon.com/collections/all
Theme: Colorblock
Thanks for the answer
Best regards..
Solved! Go to the solution
This is an accepted solution.
Hey @Lajos
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 </body> tag.
<style>
.card__badge.bottom.left {
display: none !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi,
In your theme code go to the 'card-product.liquid' and find this code:
<span
id="Badge-{{ section_id }}-{{ card_product.id }}"
class="badge badge--bottom-left color-{{ settings.sold_out_badge_color_scheme }}"
>
{{- 'products.product.sold_out' | t -}}
</span>
All you have to is create a simple template for that collection. Then you can create the following code:
{% if collection.template_suffix != 'your name'%}
<span
id="Badge-{{ section_id }}-{{ card_product.id }}"
class="badge badge--bottom-left color-{{ settings.sold_out_badge_color_scheme }}"
>
{{- 'products.product.sold_out' | t -}}
</span>
{% endif %}
This is an accepted solution.
Hey @Lajos
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 </body> tag.
<style>
.card__badge.bottom.left {
display: none !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
A couple of things that are not super ideal about the solution you're proposing.
This way you're doomed to have issues in the future.
It works! Thank you very much...
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024