Shopify themes, liquid, logos, and UX
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.
saucypeach.com
P/W: Password
Thanks
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:
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
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
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025