How can I disable the Sold Out Badge on my website?

Hi,

i would like to disable the black Sold Out Badge: https://linis-candy.myshopify.com/collections/suesse-angebote

Can somebody help pls?:slight_smile:

Many thanks!

Hello @LinisCandy ,

To hide the badge you need to add CSS to your theme.

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid theme file.

  3. Paste the below code before :


Result :

I hope this helps! Let me know if you have any further questions.

Hi @LinisCandy ,

Follow the below steps to fix the issue.

Go to online Store > themes > click on actions (three dots) > Edit code > Search Base.css from left > And the below CSS and hit save.

.card__badge span.badge.badge--bottom-left.color-inverse {
    display: none;
}

Hope this helps.

Thanks

@LinisCandy - sale and sold off both buttons share the very same classes, so any css applied will be applied to both

Many thanks! It worked! :slightly_smiling_face:

this one works too! Many thanks!

Glad to help! @LinisCandy :slightly_smiling_face:

@suyash1 It is possible to assign CSS if classes are the same.

.card__badge .badge--bottom-left:contains("Ausverkauft") { display: none; }

Explanation of my logic statement :

It targets any element with a class of badge–bottom-left that is a descendant of an element with a class of card__badge, and which contains the text “Ausverkauft” (which means “Sold Out” in German). It then sets the display property to none, which will hide the element.

Anyone that can edit the code above so it deletes my “Ej i lager” badge?

My website: dronarbutiken.se

Hello @Felixswe ,

I can help if it is not resolved yet. I checked you website but could not find the badge. Can you please share the exact place/module?

Thank you, this method works on my site!

Hi,

New Problem just surfaced. even though I have removed the “sold out” badge display. only my computer and browser is showing this update.. the “sold out” badge is still visible viewing from seperate/new devices computer, ipad, phone, etc… i suspect it could be an issue with cookie, but then its not.. can you advice a solution? thank you