Change color of shop now button - Testament theme

Change color of shop now button - Testament theme

SaucyPeach
Excursionist
44 1 14

Hi,

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

SaucyPeach_0-1728161284353.png

 

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

 

saucypeach.com

P/W: Password

 

Thanks

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
10201 2421 3065

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 </body> tag and paste the code below before the tag. 

 

<style>
#shopify-section-template--15782597886018__countdown_pC7fPb a.btn {
    background: pink;
    color: black;
}
#shopify-section-template--15782597886018__countdown_pC7fPb a.btn:hover {
    background: black;
    color: pink;
}

</style>

 

And save. 

result:

Made4uoRibe_0-1728167437634.pngMade4uoRibe_1-1728167444020.png

 

 

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

PaulNewton
Shopify Partner
7746 679 1612

@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 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org