Change color of shop now button - Testament theme

Hi,

How can I change the color and hover color of the shop now button on the main page

Not sure what color to change to but if I can get help with the code and decide on color later.

P/W: Password

Thanks

1 Like

Hi @SaucyPeach

Check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “theme. Liquid” file. Find the tag and paste the code below before the tag.


And save.

result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

@SaucyPeach make effort to clearly explain such links are NSFW(adult content).

Use a custom css setting to avoid editing files and increasing changes of breaking themes or disabling automatic upgrades, etc

Tailor colors to need:

.countdown__button-wrapper .btn:hover {
  color: white;
  background-color: black;
}

May need to use !important declarations to override built in styles

.countdown__button-wrapper .btn:hover {
  color: white !important;
  background-color: black !important;
}

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css