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
A user’s sale prices display in grey text without strike-through styling on their Shopify store product pages.
Initial Solutions Provided:
text-decoration: line-through to various price-related classesFollow-up Issue:
.price--on-sale .price__sale .price-item--regular was provided to address the Quick View specificallyStatus: The discussion appears ongoing, awaiting confirmation whether the Quick View fix resolved the remaining issue.
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
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”.
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
Please add the following code at the bottom of your css file.
dd.price__compare {
text-decoration: line-through;
}
Hope this helps!
thanks! Solution worked but I still don’t see a strikethrough on the Quickview. Where can I add the code to change that?
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!