Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi everyone
I have certain variations on sale, and would like to hide the 'compare-at' price on the product card, because it is making the home page and collection page look cluttered and confusing. See my screenshot. (Interestingly, 'the compare-at' price is not showing on all the products, even though all products have the same size variation on sale.)
Can anyone advise on how to do this?
I would like to keep the compare-at price for when the customer navigates to that particular variation.
The url is www.thechristianpostercompany.com
Solved! Go to the solution
This is an accepted solution.
A fix could be to go to Online Store -> Customize (On the theme) -> Select the section you want to hide it from -> Custom CSS
Then paste this into it
.price--on-sale .price-item--regular {
display: none;
}
Let me know if that fixed it for you 😄
This is an accepted solution.
A fix could be to go to Online Store -> Customize (On the theme) -> Select the section you want to hide it from -> Custom CSS
Then paste this into it
.price--on-sale .price-item--regular {
display: none;
}
Let me know if that fixed it for you 😄
This has worked. Thank you!!
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025