Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
The add to cart button on my product website is "invisible" but still working. I can hover my mouse over it and click it but I can't actually see it. I don't think it's a theme colour setting because I tried to change all the themes but It did not affect it at all. I believe it's a problem in the code but I have not edited anything in the backend of my store except for adding meta data pixel codes at the beginning of theme.liquid, however I doubt that has to do with my add to cart button being invisible. Does anyone have any suggestions? Here's my website:
Solved! Go to the solution
This is an accepted solution.
Hey @zzaraako,
Can't tell what caused it, but you can do this to fix it
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.product-form__buttons button.product-form__submit.button.button--full-width.button--secondary {
background-color: black !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
This is an accepted solution.
Hey @zzaraako,
Can't tell what caused it, but you can do this to fix it
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.product-form__buttons button.product-form__submit.button.button--full-width.button--secondary {
background-color: black !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
It worked! TYSM!
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