How can I remove the 'sale' logo without altering prices in coding?

How can I remove the 'sale' logo without altering prices in coding?

driveby
Visitor
2 0 0

Hey all, how can I remove the "sale" logo without doing changes to the old price, new price. Just removing the logo.1111.png

Reply 1 (1)

ac0
Shopify Partner
51 5 14

If you don't want any of the badges (sale badge and sold out badge), then you can to go main-product.liquid, find this code under the {%- when 'price' -%} line and change show_badges to false.

 

ac0_0-1708971035344.png

 

But if you still want to keep the sold out badge and only want to remove the sale badge, then you will have to leave show_badges as true, and then go to price.liquid and wrap the hightlighted code with comment tags (ie. add {% comment %} before and {% endcomment %} after the hightlighted code). 

 

ac0_1-1708971170237.png

DIY theme customization tutorials: https://www.youtube.com/@theprompted