Change the "add to cart" border color in a collection

Solved

Change the "add to cart" border color in a collection

StuKellyMotorsp
Tourist
5 0 1

Hello, I would like to change this dark green border for "add to cart" on all my collection pages to #48ef13, and cannot figure out how to. 

link to page https://www.stukellymotorsports.com/collections/350z-g35 Screenshot 2025-01-21 133110.png


Accepted Solution (1)

DaisyVo
Shopify Partner
4447 496 590

This is an accepted solution.

Hi @StuKellyMotorsp ,

You can follow the steps here:

 

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

 

Here is the code for step 3:

.card__content > .quick-add button {
    border: 3px solid #48EF13 !important;
}

Here is the result:

DaisyVo_0-1737504684662.png

 

Please let me know if it works!

Best,

Daisy

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

View solution in original post

Replies 4 (4)

CodingFifty
Shopify Partner
919 138 165

 

Hi @StuKellyMotorsp,


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

 

.card-wrapper .button--secondary:after {
    --border-opacity: var(--buttons-border-opacity);
    box-shadow: 0 0 0 5px #48ef13 !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

Made4uo-Ribe
Shopify Partner
10203 2423 3069

Hi @StuKellyMotorsp 

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 "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.button:not([disabled]):hover::after,
.shopify-challenge__button:hover::after,
.customer button:hover::after,
.shopify-payment-button__button--unbranded:hover::after {
    --border-offset: 1.3px;
    box-shadow: 
        0 0 0 calc(var(--buttons-border-width) + var(--border-offset)) #48ef13, 
        0 0 0 calc(var(--buttons-border-width) + 1px) #48ef13 !important;
}

.button:after, 
.shopify-challenge__button:after, 
.customer button:after, 
.shopify-payment-button__button--unbranded:after {
    box-shadow: 
        0 0 0 calc(var(--buttons-border-width) + var(--border-offset)) #48ef13, 
        0 0 0 calc(var(--buttons-border-width) + 1px) #48ef13 !important;
}

 

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

     

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.

DaisyVo
Shopify Partner
4447 496 590

This is an accepted solution.

Hi @StuKellyMotorsp ,

You can follow the steps here:

 

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

 

Here is the code for step 3:

.card__content > .quick-add button {
    border: 3px solid #48EF13 !important;
}

Here is the result:

DaisyVo_0-1737504684662.png

 

Please let me know if it works!

Best,

Daisy

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
StuKellyMotorsp
Tourist
5 0 1

Thank you Daisy, this worked perfectly and was a simple solution!