Shopify themes, liquid, logos, and UX
Hello, I have tried many options of getting rid of the sale badge on my products and when I try fixing it I only manage to get rid of the sale badge and the sold out badge. I only want to remove SALE badge and keep SOLD OUT badge. As you can see I still have that small white badge next to products that are "on sale"
Solved! Go to the solution
This is an accepted solution.
Hi @Liam_15
You need to get your hands dirty to implement this. Please follow the instructions below
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
Go to Snippet folder and open the card-product.liquid file.
Find the card__badge
Replace the code highlighted in the image with the code below.
{%- if card_product.available == false -%}
<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 -%}
Make sure to SAVE
Completed code should look like this
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
@Liam_15 , try to add this code to base.css :
.badge.color-accent-1 {
display: none !important;
}
@Liam_15 , Add this code to base.css :
span#NoMediaStandardBadge-template--20094800691530__product-grid-8534532260170 {
display: none !important;
}
@Liam_15 , go to base.css and add the following code to remove all the sale badge:
.badge.color-accent-2 {
display: none !important;
}
This is an accepted solution.
@Liam_15 , try to add this code to base.css :
.badge.color-accent-1 {
display: none !important;
}
Thank you so much! Worked perfectly, now the badge is gone on the product page too 🙂
This is an accepted solution.
Hi @Liam_15
You need to get your hands dirty to implement this. Please follow the instructions below
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
Go to Snippet folder and open the card-product.liquid file.
Find the card__badge
Replace the code highlighted in the image with the code below.
{%- if card_product.available == false -%}
<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 -%}
Make sure to SAVE
Completed code should look like this
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Thank you so much! 🙂
Your always welcome (",)
Need help again I'm afraid... just saw that it worked on my featured collection but not when you click in on one of my products, then the sale badge is still there somehow 😞
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