Help with code for add to cart button

Solved

Help with code for add to cart button

selfcareskin
Visitor
2 0 0

I need help with the code to make just the ADD TO CART button background hex code - FC9DB9 and the text for the ADD TO CART button to be hex code #fffff

 

shop link - https://selfcareskinstudios.com/collections/shop-all

Accepted Solution (1)

qasim-devloper
Shopify Partner
298 23 46

This is an accepted solution.

Hey @selfcareskin I will be very happy to help you.

In order to change the background color and text color of the Add to cart button then please paste this code in the end of base.css theme file.
Here is how you can find base.css file.

  1. Go to Shopify admin.
  2. Click on Online Store.
  3. Click on three dots of the theme where you want to make change.
  4. After clicking on three dots now click on "Edit Code".
  5. In the Edit code search bar search for "base.css" file.

In the end of base.css file paste the following code.

.quick-add__submit{
    background: #FC9DB9 !important;
    color: white !important;
}

After that it look like this.

qasimdevloper_0-1741191019751.png

If this was helpful please don't forget to like it and mar as Solution.

Thanks

 

- Need a Shopify Specialist? Chat on WhatsApp +923036471248

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


- If my solution was helpful, mark it as a solution and hit the like button!

View solution in original post

Replies 5 (5)

qasim-devloper
Shopify Partner
298 23 46

This is an accepted solution.

Hey @selfcareskin I will be very happy to help you.

In order to change the background color and text color of the Add to cart button then please paste this code in the end of base.css theme file.
Here is how you can find base.css file.

  1. Go to Shopify admin.
  2. Click on Online Store.
  3. Click on three dots of the theme where you want to make change.
  4. After clicking on three dots now click on "Edit Code".
  5. In the Edit code search bar search for "base.css" file.

In the end of base.css file paste the following code.

.quick-add__submit{
    background: #FC9DB9 !important;
    color: white !important;
}

After that it look like this.

qasimdevloper_0-1741191019751.png

If this was helpful please don't forget to like it and mar as Solution.

Thanks

 

- Need a Shopify Specialist? Chat on WhatsApp +923036471248

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


- If my solution was helpful, mark it as a solution and hit the like button!

selfcareskin
Visitor
2 0 0

Thank you! Can you help me do the same for the individual product pages? EX - https://selfcareskinstudios.com/products/5-advanced-acne-med

 

White for the background and #FC9DB9 for the writing 

CodingFifty
Shopify Partner
874 128 161

Go to Online Store, then Theme, and select Edit Code.
Search for base.css/theme.css/style.css/main.css/custom.css file Add the provided code at the end of the file.

button#ProductSubmitButton-template--22357933916442__main {
    background: white !important;
    color: #FC9DB9 !important;
}
Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com
qasim-devloper
Shopify Partner
298 23 46

Sure in order to make "Add to cart" button color "#FC9DB9" and change background to white then you need to paste this code in the end of base.css file. I will apply on just product page.

Here is code:

.product-form__submit {
    background: white !important;
    color: #FC9DB9 !important;
}

- Need a Shopify Specialist? Chat on WhatsApp +923036471248

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


- If my solution was helpful, mark it as a solution and hit the like button!

CodingFifty
Shopify Partner
874 128 161

Hi @selfcareskin,

Go to Online Store, then Theme, and select Edit Code.
Search for base.css/theme.css/style.css/main.css/custom.css file Add the provided code at the end of the file.

.quick-add__submit{
    background: #FC9DB9 !important;
    color: #fff !important;
}
Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com