Shopify themes, liquid, logos, and UX
Hi guys,
Website: seraneeva.com
I've been stuck on this for a while. How can I change the colors of the just the button on the first image of the homepage? I'd like it to have black text and a white background.
Solved! Go to the solution
This is an accepted solution.
Hi @flammagreg, i can help you to change the color without the on hover animation going away.
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid
Step 3: Insert the below code at the bottom of the file -> Save
a.btn.homepage-section-btn {
color: black !important;
}
a.btn.homepage-section-btn::before {
background-color: white !important;
}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Hi @flammagreg
do you mean this one ?
if it is 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 "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
a.btn.homepage-section-btn {
color: black !important;
background: white !important;
}
And Save.
Yes, but I'd like to change the color without the on hover animation going away
Check this one if it work, I try to over ride the code that is been there. If this is not working you need to find that codes.
Just to clarify, if you want to change the background white also the white border? or you want to make it black?
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>
.slider-section--template--16653911326857__image_slideshow_a7Vfe6 .block-section--image_cCB3MV .homepage-section-btn {
color: unset;
}
a.btn.homepage-section-btn:before {
background: rgb(255 255 255 / 100%) !important;
}
</style>
And Save.
To change the color of the button on the homepage, you can locate the CSS selector for the button element in your website's stylesheet. Then, simply adjust the "background-color" property to the desired color value.
@flammagreg Please follow the below steps to change the colors of the button on the first image of the homepage. Let me know whether it is helpful for you.
I have the same options select as you and this is what is looks like:
@flammagregIt seems you have fixed it. Since it is the default option in the Envy theme, it should work correctly. The screenshot you provided may be affected by other codes. Please reach out to me if any assistance is needed.
This is an accepted solution.
Hi @flammagreg, i can help you to change the color without the on hover animation going away.
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid
Step 3: Insert the below code at the bottom of the file -> Save
a.btn.homepage-section-btn {
color: black !important;
}
a.btn.homepage-section-btn::before {
background-color: white !important;
}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025