What's your biggest current challenge? Have your say in Community Polls along the right column.

Button Colour Change

Solved

Button Colour Change

caitlynneal
Tourist
12 0 5

I want to change my add to cart button to be red and not outlined. and on hover state, the text stays white. how do i add this in?

 

it wont let me in my current theme when I add in the shop pay button

https://silksoothehair.com/products/silksoothe%E2%84%A2-premium-red-light-massage-brush

 

Screen Shot 2024-11-21 at 10.10.12 PM.png

Accepted Solution (1)

Moeed
Shopify Partner
6346 1721 2079

This is an accepted solution.

Hey @caitlynneal 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.product-form__submit {
    background: #B02E3C !important;
    color: white !important;
}
</style>

RESULT:

Moeed_0-1732180614740.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


View solution in original post

Replies 2 (2)

Moeed
Shopify Partner
6346 1721 2079

This is an accepted solution.

Hey @caitlynneal 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.product-form__submit {
    background: #B02E3C !important;
    color: white !important;
}
</style>

RESULT:

Moeed_0-1732180614740.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


Mehran_Ali
Shopify Partner
439 55 68

Hi @caitlynneal 

 

Try using this CSS code:

You just need to follow these steps:

1) Go to the Online Store
2) Edit Code
3) Find theme.css / base.css


And past that CSS Code:

.product-form__submit, .product-form__submit:hover { background-color: rgb(var(--color-button-text)); color: white; }

 

I hope this solution works for you!
If it does, please Like It and Mark It As A Solution, or support me by Buying Me A Coffee to keep me going!

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536