How can I change the colour of the 'add to cart' button on a product page only?

Hi

pls can u provide a solution to changing the color of the add to cart button on product page but not on anything else (featured collections etc)

URL: smartappliancesonline.co.uk

Theme: Warehouse

current:

cheers

1 Like

Hi @chrisjames11 ,

Are you talking about any product in product page? If so you can do the code below

  1. From your Admin Page, click Online Store > Themes >Actions > Edit code
  2. In the Asset folder, open the theme.css
  3. Paste the code below at the very bottom of the file.

NOTE: Change the blue to the color you want

.product-block-list__item.product-block-list__item--info button.product-form__add-button.button.button--primary {
    background: blue;
}