Shopify themes, liquid, logos, and UX
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.
Solved! Go to the solution
This is an accepted solution.
<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>
This is an accepted solution.
<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>
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.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025