Dawn - Change couleur of buy now button on home page, & text written

Hi,

I’m using Dawn theme, my website is abmarketshopalex0087.myshopify.com password alexbb87

I want to change the color of the buy now button only home page (not on the product page) & also the color of the text written on this button.

Thanx for your help

Alex

HI @Alex087

.image-with-text__text a.button.button--primary{background-color : #000}
// add this css on setting custom.css part chnage color code you wont to change

Hey @Alex087

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

{% if template == 'index' %}

{% endif %}

RESULT:

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

Best Regards,
Moeed

thamk you so much Moeed

would you know how to change all my buy now & add to cart buttons text in bold?

{% if template == 'index' %}

{% endif %}
add this line just

Thanks Nilesh, it changed only in bold for the home page, not for the product page, thanks

Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

could you Like & Mark As Solution

thanks Moeed, would you know how to put my add to car button text in bold? for the product page

Just did Nilesh Thanks, it changed only in bold for the home page, not for the product page, thanks in advance

Hey @Alex087

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

amazing! thanx Moeed