Change Add to Cart Button Color in Trade Theme

Solved

Change Add to Cart Button Color in Trade Theme

jordanbford1
Excursionist
44 0 10

How to I change the Add to Cart button colors to be #123524 background color, #FFFFFF text color, #123524 boarder color for my Product Pages on Trade Theme?

 

Screenshot 2024-12-26 at 16.38.25.png

 

 

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
10793 2133 2251

This is an accepted solution.

Hi @jordanbford1 

Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings 

.product .product-form__submit {
    background-color: #123524;
    color: #FFFFFF;
    border: 1px solid #123524;
}

Screenshot 2024-12-27 at 09.21.27.png

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
9710 2309 2888

Hi @jordanbford1 

TRy this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes"
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

.product-form__submit {
    background: #123524;
    color: #fff;
    
}
.product-form__submit:after {
    box-shadow: 0 0 0 calc(var(--buttons-border-width) + var(--border-offset)) rgba(18, 53, 36, 1), 
                0 0 0 var(--buttons-border-width) rgba(18, 53, 36, 0.5); 
}

.product-form__submit:before {
    box-shadow: var(--shadow-horizontal-offset) var(--shadow-vertical-offset) var(--shadow-blur-radius) rgba(18, 53, 36, 0.7); 
}

.product-form__submit:not([disabled]):hover::after {
    --border-offset: 1.3px;
    box-shadow: 0 0 0 calc(var(--buttons-border-width) + var(--border-offset)) rgba(18, 53, 36, 1), 
                0 0 0 calc(var(--buttons-border-width) + 1px) rgba(18, 53, 36, 0.5);
}

.product-form__submit:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.3rem rgba(18, 53, 36, 1), 
                0 0 0 0.5rem rgba(18, 53, 36, 0.5),
                0 0 0.5rem 0.4rem rgba(18, 53, 36, 0.3); 
}

 

  • And Save. 
  • Result:
    Made4uoRibe_0-1735254439494.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
jordanbford1
Excursionist
44 0 10

@Made4uo-Ribe Am I pasting it wrong? Could not get it to change the ATC button color.

Screenshot 2024-12-26 at 17.15.28.png

 

Made4uo-Ribe
Shopify Partner
9710 2309 2888

Yeps, sorry I forgot to add the style tag.

 

<style>
.product-form__submit {
    background: #123524;
    color: #fff;
    
}
.product-form__submit:after {
    box-shadow: 0 0 0 calc(var(--buttons-border-width) + var(--border-offset)) rgba(18, 53, 36, 1), 
                0 0 0 var(--buttons-border-width) rgba(18, 53, 36, 0.5); 
}

.product-form__submit:before {
    box-shadow: var(--shadow-horizontal-offset) var(--shadow-vertical-offset) var(--shadow-blur-radius) rgba(18, 53, 36, 0.7); 
}

.product-form__submit:not([disabled]):hover::after {
    --border-offset: 1.3px;
    box-shadow: 0 0 0 calc(var(--buttons-border-width) + var(--border-offset)) rgba(18, 53, 36, 1), 
                0 0 0 calc(var(--buttons-border-width) + 1px) rgba(18, 53, 36, 0.5);
}

.product-form__submit:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.3rem rgba(18, 53, 36, 1), 
                0 0 0 0.5rem rgba(18, 53, 36, 0.5),
                0 0 0.5rem 0.4rem rgba(18, 53, 36, 0.3); 
}
</style>

 

And Save.

 

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

DaisyVo
Shopify Partner
2836 339 394

Hi @jordanbford1 

 

I hope you are well. You can follow our instructions below:


1/ Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
2/ From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
3/ Copy the code below and paste it there

 

Here is the code for Step 3:

 

.product-form__buttons button.product-form__submit {
    background: #123524 !important;
    color: #fff !important;
    border: solid 1px #123524 !important;
}
.product-form__buttons button.product-form__submit::after {
    display: none !important;
}

 

image (24).png

 


Please let me know if it works. Thank you!

 

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

Dan-From-Ryviu
Shopify Partner
10793 2133 2251

This is an accepted solution.

Hi @jordanbford1 

Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings 

.product .product-form__submit {
    background-color: #123524;
    color: #FFFFFF;
    border: 1px solid #123524;
}

Screenshot 2024-12-27 at 09.21.27.png

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.