Change color of button on homepage

Solved

Change color of button on homepage

flammagreg
Trailblazer
276 0 39

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.

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1972 564 566

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: 

 

Animation.gif

 

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

View solution in original post

Replies 8 (8)

Made4uo-Ribe
Shopify Partner
10038 2387 3014

Hi @flammagreg 

do you mean this one ?

Made4uoRibe_0-1717773713938.png

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.

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.
flammagreg
Trailblazer
276 0 39

Yes, but I'd like to change the color without the on hover animation going away

Made4uo-Ribe
Shopify Partner
10038 2387 3014

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. 

 

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.

ayeshamisal
Tourist
4 0 0

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. 

Vinsinfo
Shopify Partner
486 165 169

@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.

 
1. Go to "Online Store" -> "Themes".
2. Click "Customize" button from the current theme.
3. Click "Collection" block under the "Slideshow" section to edit like in the below attached screenshot.
Vinsinfo_0-1717775583933.png

 

4. Locate the bottom of the section and search for the "Button text" option and "Button background" option.
Vinsinfo_1-1717775594441.jpeg

 

5. Click the "Button text" and "Button background" options to edit and choose the respective color you want display for the button text and its background like in the below attached screenshot.
 
Then the final output will be like,
Vinsinfo_2-1717775602279.png

 

 
If you are not asking for this section, please share screenshot of the section your are asking to share solution based on it.
 
Please provide your support by click "Like" and "Accepted" if our solution works for you. Thanks for your support.
Please reach out to bizdev@vinsinfo.com for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support
flammagreg
Trailblazer
276 0 39

I have the same options select as you and this is what is looks like: Screenshot 2024-06-07 at 12.01.25 PM.png

Vinsinfo
Shopify Partner
486 165 169

@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.

Please reach out to bizdev@vinsinfo.com for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support

BSSCommerce-B2B
Shopify Partner
1972 564 566

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: 

 

Animation.gif

 

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