Hide the Sale badge from product thumbnail

Topic summary

Goal: hide the “Sale” badge on product thumbnail images in the Shopify Spotlight theme (badge = label overlay on product cards; theme.liquid = main theme template file).

  • Initial fix: custom code added in theme.liquid removed both “Sale” and “Sold out” badges; needed to hide only “Sale.” A revised snippet targeted only the Sale badge and worked in English.

  • Multilingual issue: on the French version, the Sale badge still appeared. The solution required matching the exact French label text used on the site (“En vente”) within the code. After replacing with the exact phrase (no dash) and allowing for cache delay, the French badge was also hidden.

  • Follow-up: the Sale badge still appeared in the “Related products” section on product pages. Additional code placed in theme.liquid (under / above , per guidance) suppressed the badge there as well.

  • Outcome: issue resolved across English and French, including the related products section. No remaining open questions.

Notes: Code snippets and screenshots were central to the solution, but the specific code content is not shown in the transcript.

Summarized with AI on December 31. AI used: gpt-5.

You can try to add this code as well.

Go to your theme’s “Edit Code” Option, then in the search bar type “theme.liquid”
Below the tag “” tag paste the following. Screenshot attached for reference.


Screenshot is for reference only, the correct code to paste is the one shown above.