Happening now | Office Hours: Customizing Your Theme with Moeed | Ask all your theme customization questions now!

how to change background colour of add to cart and buy it now

Solved

how to change background colour of add to cart and buy it now

Taryckrich
Explorer
60 0 10
hi can anyone please help me make the buy it now background #0064E4 with white text and for the background of add to cart button #008A00 and the text colour white, I also want the text size for both add to cart and buy it now to be 14px and bold please.
 
Accepted Solutions (2)

BSS-TekLabs
Shopify Partner
2401 695 831

This is an accepted solution.

- Here is the solution for you @Taryckrich 
- Please follow these steps: 

step.png

- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

.shopify-payment-button__button {
 background: #0064E4 !important;
    font-size: 14px !important;
    font-weight: bold !important;
}
.product-form__submit {
    background: #008A00 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: white !important;
}

- Here is the result you will achieve:

BSSTekLabs_0-1722254124908.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


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

View solution in original post

Moeed
Shopify Partner
7132 1917 2349

This is an accepted solution.

Hey @Taryckrich 

 

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>
.shopify-payment-button__button:after {
    box-shadow: unset !important;
}
.shopify-payment-button__button {
    background: #0064E4 !important;
    font-weight: bold !important;
}
.product-form__submit {
    background: #008A00 !important;
    color: white !important;
    font-weight: bold !important;
}
</style>

RESULT:

Moeed_0-1722254143217.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!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 6 (6)

niraj_patel
Shopify Partner
2391 516 515

Hello @Taryckrich 

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>
.product-form__buttons .product-form__submit{
background: #008A00 !important;
color: #fff !important;
}
</style>

techlyser_web_0-1722254014080.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

BSS-TekLabs
Shopify Partner
2401 695 831

This is an accepted solution.

- Here is the solution for you @Taryckrich 
- Please follow these steps: 

step.png

- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

.shopify-payment-button__button {
 background: #0064E4 !important;
    font-size: 14px !important;
    font-weight: bold !important;
}
.product-form__submit {
    background: #008A00 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: white !important;
}

- Here is the result you will achieve:

BSSTekLabs_0-1722254124908.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Taryckrich
Explorer
60 0 10

Thank you!!

BSS-TekLabs
Shopify Partner
2401 695 831

Glad to help you. Have a good day.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Taryckrich
Explorer
60 0 10

Can you check my reply on the moving products further away post please

Moeed
Shopify Partner
7132 1917 2349

This is an accepted solution.

Hey @Taryckrich 

 

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>
.shopify-payment-button__button:after {
    box-shadow: unset !important;
}
.shopify-payment-button__button {
    background: #0064E4 !important;
    font-weight: bold !important;
}
.product-form__submit {
    background: #008A00 !important;
    color: white !important;
    font-weight: bold !important;
}
</style>

RESULT:

Moeed_0-1722254143217.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!

- Custom Design | Advanced Coding | Store Modifications