Changing the color of add to cart button (in product card in featured collection NOT product page)

Hi all,

A small but important help needed… I’ve added quick add ‘add to cart’ button on my feature collection product cards. However, I want the add to card buttons in solid style rather than outline only.

Im aiming for something like this (https://goudagames.in/) -

Can someone please help with this?

My URL - https://f40566-d3.myshopify.com/

No password.

3 Likes

Hi @RaghavGoel1 ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Here is result:

Hope this can help you,

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

1 Like

Hi @RaghavGoel1

Check this one,.

  1. From you Admin page, go to Online Store > Themes
  2. Select the theme you want to edit
  3. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  4. Then place the code below at the very bottom of the file.
.quick-add button {
    background: #016172 !important;
    color: white !important;
    
}

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

  • Here is the solution for you @RaghavGoel1
  • Please follow these steps:

  • Then find the base.css file.
  • Then add the following code at the end of the file and press ‘Save’ to save it.
.quick-add__submit {
color: white !important;
    background: #016172 !important;
    font-weight: 700 !important;
}
  • Here is the result you will achieve:

  • Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.

Thanks a lot sir/ma’am - this worked well!

1 Like

@RaghavGoel1 , No problem. Have a good day :heart_eyes: