> > Hey there, I want to change background Color of “Buy it now” button to black Color. Please help me.
Hi,
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.
I’m waiting for you???
You can add code by following these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
I want to add black colour
You can add code by following these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Send me the code only
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
Step 1. Go to Admin → Online store → Theme > Edit code
Step 2. Find the main css file theme.css (or base.css,…) . Search for the following CSS snippet
Step 3. Copy this code at the end of the file
.product-form__buttons .shopify-payment-button__button,
.shopify-payment-button__button--unbranded:hover,
.shopify-payment-button__button--unbranded:hover:not([disabled]) {
background-color: black!important;
color: white!important;
}
.product-form__buttons .shopify-payment-button__button:after,
.product-form__buttons .shopify-payment-button__button:before {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)!important;
}
You will get the result like this
If it helps you, please like and mark it as the solution.
Best Regards
Not working
Yes, It changes the buy button Color when I move cursor on that button. When I move the cursor it becomes yellow
try add this to theme.liquid file again please
Not working. Thanks! I’ll ask someone else


