How to change the color of buy now button in theme Refresh

Guys how I can custom change the color of the background on the buy now button located on the product page on any product I would like to change the background color and the text color as well I try with a couple of codes into the base.css but not successfully any information about it

Where i should add it exactly I try on different pages but now working which one is the right one?

Hi @Ivan1222 ,

Could you please share URL and your store password if it enabled? So that we can help you.
Thank you.

Hello @Ivan1222 ,

You can follow these steps:

  1. Go to Online Store->Theme->Edit code

  1. Open your theme.liquid file, paste the below code before

You can change #000 to the color code you want to use.

I hope the above is useful to you.

Kind & Best regards,
GemPages Support Team

Hi @Ivan1222

You can try this code by following these steps:

Go to Online store => themes => actions => edit code and add this code on file theme.liquid before tag


Hope this answer helps.

Best regards,

Victor | PageFly