We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Strike-through not appearing on sale price

Strike-through not appearing on sale price

JayKay89
Excursionist
24 0 7

Hello

 

Currently I cannot see a strike-though on my sales prices. It's just greyed out. How can I add a strike-though?

 

link: https://tothestars.media/products/shanty-beanie-burnt-orange

Screenshot 2025-07-03 at 7.28.02 AM.png

Replies 5 (5)

tim
Shopify Partner
4812 598 1733

You can fix this with CSS:

.price__sale .price-item--regular {
  text-decoration: line-through;
}

 

This code can be added to this section "Custom CSS" setting, or, if you want to apply it to all sections, add it to "Theme Settings"=> "Custom CSS".

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

romeo0
Visitor
2 0 0

 

  • Go to the product in Shopify admin.

  • Set a higher Compare at Price and a lower Price (e.g., Compare at: $30, Price: $20).

  • If no strike-through appears, go to Online Store > Themes > Edit Code.

  • Open your CSS file (theme.css or base.css).

  • Add this at the bottom:

    .compare-price {
    text-decoration: line-through;
    }
    Refresh 



 

dmwwebartisan
Shopify Partner
12384 2560 3749

@JayKay89 

Please add the following code at the bottom of your css file.

dd.price__compare {
    text-decoration: line-through;
}

 

Hope this helps!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
PageFly App to customize your pages | The most powerful Shopify page builder app
JayKay89
Excursionist
24 0 7

thanks! Solution worked but I still don't see a strikethrough on the Quickview. Where can I add the code to change that?

 

 

dmwwebartisan
Shopify Partner
12384 2560 3749

@JayKay89 

Please add the following code at the bottom your css file.

.price--on-sale .price__sale .price-item--regular {
    text-decoration: line-through;
}

 

Hope this works!

 

 

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
PageFly App to customize your pages | The most powerful Shopify page builder app