All things Shopify and commerce
My website is https://curahealing.co/collections/frontpage/products/massager-cervical-hot-pillow
I want to change the color of the price of the product... I know that I can use custom css to say span {color:blue;}
but if i do that it changes the color of more than just the price and I only want to change the color of the price "$59.99" if anybody knows how to do this it would be appreciated if you would share it with me
Solved! Go to the solution
This is an accepted solution.
You need to base the CSS coding you add on the class, not 'span'.
.product__price = both of the prices
.on-sale = just the sale price (price without the strikethrough)
.product__price--compare (price with the strikethrough).
So for example, if you just want the sale price colour to change, do something like this:
.on-sale {
color: blue;
}
★ Did my post help? If yes, then please like and accept solution. ★
https://stephens.world
support@stephensworld.ca
This is an accepted solution.
Hi @Byron,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
span.product__price.on-sale {
color: blue !important;
}
</style>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
You need to base the CSS coding you add on the class, not 'span'.
.product__price = both of the prices
.on-sale = just the sale price (price without the strikethrough)
.product__price--compare (price with the strikethrough).
So for example, if you just want the sale price colour to change, do something like this:
.on-sale {
color: blue;
}
★ Did my post help? If yes, then please like and accept solution. ★
https://stephens.world
support@stephensworld.ca
This is an accepted solution.
Hi @Byron,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
span.product__price.on-sale {
color: blue !important;
}
</style>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025