Re: Change Add-to-Cart button border color

Change Add-to-Cart button border color

CARDPIECE
Tourist
6 0 2

Hi there,

 

I want to make my instock items pop out compared to sold out items.

 

So I want to make the "Add to Cart" button's border color to be red instead of black.

 

Site: cardpiece.com

 

Thanks for the help!

 

CARDPIECE_1-1720893154019.png

 

 

Replies 2 (2)

Moeed
Shopify Partner
5082 1355 1636

Hey @CARDPIECE 

 

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>
.quick-add__submit:after {
    box-shadow: unset !important;
}
.quick-add__submit {
    border: solid 1px red !important;
}
</style>

RESULT:

Moeed_0-1720893797223.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
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
CARDPIECE
Tourist
6 0 2

Hi thanks for the suggestion.

 

Though I only want to apply this border color change to instock items that have the "Add to Cart" button on them, I don't want this applied on out-of-stock products. Can you come up with another code? 

 

Thanks 😄