What's your biggest current challenge? Have your say in Community Polls along the right column.

Make the hollow add to cart button full

Solved

Make the hollow add to cart button full

Jarch1
Tourist
5 0 1

Basically I want to make the add to cart button on my products a full green instead of just the outline. I'm using the free publisher theme.

Accepted Solution (1)

comercioservice
Shopify Partner
273 37 34

This is an accepted solution.

@Jarch1  


hi Hope you are well,
I’ve taken a look at what you need—just a little CSS magic, and everything will be fixed! Follow my steps, and you'll have it sorted in no time!

1, from admin, go to Online Store > Themes.
2, Actions > Edit code for your active theme.
3, Find and open the theme.liquid file, maybe in the Layout folder.
4, Look for the </head> tag and paste the code in the end

 

<style>
.button:after, .shopify-challenge__button:after, .customer button:after, .shopify-payment-button__button--unbranded:after {
}

button.product-form__submit.button.button--full-width.button--secondary {
    background: #315b02;
    color: #fff;
}

button.product-form__submit.button.button--full-width.button--secondary::after {
    box-shadow: unset;
}
</style>​

 

 

I hope it works for you, let me know, and If you'd like to discuss this more, don't hesitate to send me a PM
Thank you
Was my reply helpful? Click Like to let me know! Was your question answered? Mark it as an Accepted Solution.
Need store customizations, bug fixing or development ? Contact with us -- Support form for quick quote!
BFCM Big Deals: Big savings 25% off -on our Shopify FAQs apps!

View solution in original post

Replies 2 (2)

comercioservice
Shopify Partner
273 37 34

This is an accepted solution.

@Jarch1  


hi Hope you are well,
I’ve taken a look at what you need—just a little CSS magic, and everything will be fixed! Follow my steps, and you'll have it sorted in no time!

1, from admin, go to Online Store > Themes.
2, Actions > Edit code for your active theme.
3, Find and open the theme.liquid file, maybe in the Layout folder.
4, Look for the </head> tag and paste the code in the end

 

<style>
.button:after, .shopify-challenge__button:after, .customer button:after, .shopify-payment-button__button--unbranded:after {
}

button.product-form__submit.button.button--full-width.button--secondary {
    background: #315b02;
    color: #fff;
}

button.product-form__submit.button.button--full-width.button--secondary::after {
    box-shadow: unset;
}
</style>​

 

 

I hope it works for you, let me know, and If you'd like to discuss this more, don't hesitate to send me a PM
Thank you
Was my reply helpful? Click Like to let me know! Was your question answered? Mark it as an Accepted Solution.
Need store customizations, bug fixing or development ? Contact with us -- Support form for quick quote!
BFCM Big Deals: Big savings 25% off -on our Shopify FAQs apps!

tim
Shopify Partner
3911 394 1435

Add this to the sections "Custom CSS" setting:

button.product-form__submit {
  color: rgb(var(--color-base-background-1));
  background: rgb(var(--color-base-text));
}

 

Do not edit your theme code unless it's absolutely necessary (not in this case). This will save your headaches with theme update.

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com