Change text color in a specific button - Theme Dawn 7.01

Topic summary

A user needed to change button text color from black to white on their Shopify store using the Dawn 7.01 theme.

Problem identified:

  • The color was hardcoded with inline styles using the !important flag
  • This prevented standard CSS overrides from working

Solution:

  • Located the problematic code in main.product.liquid
  • Removed the inline style markup directly from the theme file
  • Successfully changed the text color to white

Status: Resolved. The user confirmed everything is working correctly after editing the theme code.

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

Hello

I have tried several things without luck, hope someone can help me out. :slightly_smiling_face:

The text is black and i want to change it in white instead. :slightly_smiling_face: (Skriv en anmeldelse)

My url:

www.dekanten.no

Thanks in advance

Hi @Dekanten

It looks like you have set the color with the style tag and !important flag directly for that button. It needs to be removed from the element by accessing the theme code.

You will have to check the right file where the following code exists.

Skriv en anmeldelse

If incase you are having trouble finding it, you can give us the access to edit code and we can help you out with it.

Thanks.

1 Like

Hi and thanks for the advice, i find the code in main.product.liquid and changed it from there. Everything is just fine now. :slightly_smiling_face:

Amazing @Dekanten . Please do consider marking it as an answer if it helped.

Thank you.

I have done that now so everything is just fine. :slightly_smiling_face:

1 Like

Thank you so much.

1 Like