Re: I want to change outline button to solid button for add to cart

Solved

I want to change outline button to solid button for add to cart

swayurindia
Excursionist
144 0 9

I want to change outline button to solid button for add to cart. I am attaching the image below.

 

https://www.swayur.com/collections/all/

 

add-to-cart.JPG

I want this button to be changed into solid button with white color font and background as #1967d2

 

Like this:

Capture.JPG

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
8274 1985 2435

This is an accepted solution.

Hi @swayurindia 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • 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:

 

.quick-add__submit {
    background: #1967d2;
    color: white;
    border: none !important;
}
button.quick-add__submit:after {
    border: none !important;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1699020596565.png
  • Let me know if the white border will not gone after you paste this code. Thanks!

 

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 5 (5)

Bilash
Shopify Partner
25 2 1

Online Store -> Edit Code->assets->base.css   add this line at end of the file

 

.button--secondary{

background: #1967d2!important;

color: white!important;

border: none;

}

 

 

and save the file 

 

swayurindia
Excursionist
144 0 9

Still there is white color border appearing in the outer of the button

Bilash
Shopify Partner
25 2 1

border: solid #1967D2 !important; replace with border:none;

Made4uo-Ribe
Shopify Partner
8274 1985 2435

This is an accepted solution.

Hi @swayurindia 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • 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:

 

.quick-add__submit {
    background: #1967d2;
    color: white;
    border: none !important;
}
button.quick-add__submit:after {
    border: none !important;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1699020596565.png
  • Let me know if the white border will not gone after you paste this code. Thanks!

 

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
TylerBoles
Visitor
1 0 0

Hi there, I tried this solution and it didn't work for me. I want to make my outlined add to cart button a solid button. I am using the "Craft" store theme. Could you help me out with this? Thanks!