How can I alter the color of my 'Shop Now' button?

Topic summary

A user seeks help changing the color of ‘Shop Now’ buttons on their Shopify store, providing screenshots and a store preview link.

Initial Solutions Offered:

  • Two responders suggest adding CSS code to either base.css or theme.liquid files
  • Code targets .banner.banner__content button and .banner__buttons a.button.button--primary classes
  • User can customize colors by modifying values in the CSS (background, border-color, text color)

Issue Encountered:

  • After implementing initial code, white lines/borders appear around the button
  • Solution: Add box-shadow: unset !important; to remove unwanted borders

Final Request:

  • User successfully changes button background to black but needs help making button text white
  • Responder provides updated CSS adding color: #fff !important; for white text

Resolution:

  • Problem appears solved with complete CSS targeting background color, removing box-shadow, and setting text color to white
  • User thanked the helper and was asked to accept the solution
Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

Hi, tried to do some research but didnt find any information that helped me.

Wondered how i can change the button and text color on these onces, if anyone know this?

Dispomal_1-1703686303777.png

Heres my link: https://jlo9jmwso3ogncv0-56470536270.shopifypreview.com

Thanks!!

1 Like

Hi @Dispomal

Follow this:

  1. Go to Online Store->Theme->Edit code
  2. Asset->base.css → paste bellow code in bottom of file
.banner .banner__content .button { background: red; color: black; border-color: green; }

Note: change your color

Hello @Dispomal

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

.banner__buttons a.button.button--primary { background: aqua !important; }

what color will that make it? Or how do i choose my own color?

For this you will have to inspect the page on the browser and you can choose the color from there.
can I know which color you want?

Tried it now but still get some white lines around it, why it that?

Let me check.

Hello @Dispomal

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

.banner__buttons a.button.button--primary { background: black !important; box-shadow: unset !important; }

Yeah really no idea why it does that

Thanks that worked perfectly, now comes my last question how do i make the text white :)?

just give me 5min.

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

.banner__buttons a.button.button--primary { background: black !important; box-shadow: unset !important; color: #fff !important; }

my solution worked then like and accept solution.
Thanks

1 Like