Buy button background Color Change

Buy button background Color Change

raja18181-
Excursionist
33 0 5
Screenshot_2024-08-02-18-30-14-155_com.android.chrome-edit.jpg

Hey there, I want to change background Color of "Buy it now" button to black Color. Please help me. 

Replies 14 (14)

BSSCommerce-B2B
Shopify Partner
1972 564 568

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.

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

raja18181-
Excursionist
33 0 5
niraj_patel
Shopify Partner
2391 516 516

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
.BUz42FHpSPncCPJ4Pr_f {
background: #3cdbdb !important;
}
.BUz42FHpSPncCPJ4Pr_f:before, .BUz42FHpSPncCPJ4Pr_f:after{
box-shadow: unset !important;
}
</style>

niraj_patel_0-1722606322972.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
raja18181-
Excursionist
33 0 5

I want to add black colour 

niraj_patel
Shopify Partner
2391 516 516

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
.BUz42FHpSPncCPJ4Pr_f {
background: #000 !important;

color: #fff !important;
}
.BUz42FHpSPncCPJ4Pr_f:before, .BUz42FHpSPncCPJ4Pr_f:after{
box-shadow: unset !important;
}
</style>

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
raja18181-
Excursionist
33 0 5

Send me the code only 

niraj_patel
Shopify Partner
2391 516 516

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid

<style>
.BUz42FHpSPncCPJ4Pr_f {
background: #000 !important;

color: #fff !important;
}
.BUz42FHpSPncCPJ4Pr_f:before, .BUz42FHpSPncCPJ4Pr_f:after{
box-shadow: unset !important;
}
</style>

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
BSSCommerce-B2B
Shopify Partner
1972 564 568

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

BSSCommerceB2B_0-1722606687294.png

If it helps you, please like and mark it as the solution.

Best Regards

 




B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

raja18181-
Excursionist
33 0 5

Not working 

BSSCommerce-B2B
Shopify Partner
1972 564 568

Did you paste the code like this?

BSSCommerceB2B_0-1722607576403.png

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

raja18181-
Excursionist
33 0 5

Yes, It changes the buy button Color when I move cursor on that button. When I move the cursor it becomes yellow 

BSSCommerce-B2B
Shopify Partner
1972 564 568

try add this to theme.liquid file again please

 

<style>
.shopify-payment-button__button--unbranded,
.shopify-payment-button__button--unbranded:hover, 
.shopify-payment-button__button--unbranded:hover:not([disabled]) {
    background-color: black!important;
    color: white!important;
}
.shopify-payment-button__button--unbranded,
.shopify-payment-button__button--unbranded:before,
.shopify-payment-button__button--unbranded:after,
.shopify-payment-button__button--unbranded:hover:afte
{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)!important;
}
</style>

 

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

raja18181-
Excursionist
33 0 5

Not working. Thanks! I'll ask someone else

raja18181-
Excursionist
33 0 5

I'm waiting for you????????