Add to cart button is changing to white when clicked , please fix

Topic summary

A Shopify store owner reports that their product page “Add to Cart” button turns white after being clicked, making it difficult to see. Three community members provided solutions:

Proposed fixes:

  • Solution 1: Add custom CSS code in theme.liquid file above the </body> tag
  • Solutions 2 & 3 (most common): Navigate to Assets > product.css and add the following CSS at the bottom:
button.loading.atc {
  color: #000 !important;
}

This CSS targets the loading state of the add-to-cart button and forces the text color to black (#000), ensuring visibility when clicked.

Implementation steps:

  1. Go to Online Store > Themes > Actions > Edit Code
  2. Locate the product.css file in Assets
  3. Paste the CSS code at the end
  4. Save changes

The issue appears to be a styling conflict during the button’s loading state. Multiple responders suggested the same CSS solution, indicating it’s a reliable fix.

Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

My product page add to cart button is changed to white after clicked , please help me fix - https://ne8jwywtoj7r2747-71576191201.shopifypreview.com

2 Likes

Hey @Shahil1

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hello @Shahil1

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset > product.css and paste this at the bottom of the file:
button.loading .cta {
color: #000 !important;
}

Hello @Shahil1
Go to online store ----> themes ----> actions ----> edit code ----> assets ---->product.css
add this code at the end of the file and save.

button.loading .cta {
color: #000 !important;
}

Thanks