How do you change the color of specific words in shopify impulse theme

Solved

How do you change the color of specific words in shopify impulse theme

Byron
Tourist
5 0 5

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

Accepted Solutions (2)

StephensWorld
Shopify Partner
1400 174 387

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

View solution in original post

BSSCommerce-HDL
Shopify Partner
2305 835 910

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: 

BSSCommerceHDL_0-1721436230581.png

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

View solution in original post

Replies 2 (2)

StephensWorld
Shopify Partner
1400 174 387

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

BSSCommerce-HDL
Shopify Partner
2305 835 910

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: 

BSSCommerceHDL_0-1721436230581.png

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