Solved

How can I change a specific button color in Dawn theme?

tourbrandus
Excursionist
14 0 6

Hi! 

I am looking to change this specific "SHOP ALL" button color on my homepage to #9CFF00 and add a 1pt black outline. I know it is a primary button but I do not want to change all of them just this specific one. Can't seem to figure it out. 

 

Screen Shot 2023-05-28 at 1.37.26 PM.png

 

Accepted Solutions (2)

oscprofessional
Shopify Partner
15846 2371 3074

This is an accepted solution.

Hello @tourbrandus 

You can try this code: it will be helpful to you

Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.

 

a.button.button--primary {
    background: #9cff00 !important;
    border: 1px solid black !important;
}

 

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing

View solution in original post

Made4uo-Ribe
Shopify Partner
5486 1321 1625

This is an accepted solution.

Hi @tourbrandus ,

Thank you for the information. 

Try this code. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "theme.scss.liquid, styles.scss.liquid or base.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:
  4. And Save.
section#shopify-section-template--18969633227073__image_banner a.button.button--primary {
    border: 1px solid black;
    background-color: #9CFF00;
}

Result: 

Ribe_Dagandara_0-1685358367222.png

NOTE:

You can change anytime the sizes and the color. 

I hope it help. 

 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 9 (9)

Made4uo-Ribe
Shopify Partner
5486 1321 1625

Hi @tourbrandus , 

If you know a little bit coding you can call specific selector on the page. 

And If not would you mind sharing your website with password?

Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


tourbrandus
Excursionist
14 0 6

Website: www.tourbrand.us

password: task1data

Made4uo-Ribe
Shopify Partner
5486 1321 1625

This is an accepted solution.

Hi @tourbrandus ,

Thank you for the information. 

Try this code. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "theme.scss.liquid, styles.scss.liquid or base.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:
  4. And Save.
section#shopify-section-template--18969633227073__image_banner a.button.button--primary {
    border: 1px solid black;
    background-color: #9CFF00;
}

Result: 

Ribe_Dagandara_0-1685358367222.png

NOTE:

You can change anytime the sizes and the color. 

I hope it help. 

 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


tourbrandus
Excursionist
14 0 6

This worked thank you. 

 

Now when I hover over the button with my cursor the outline is white. Is there any way to alter that?

Made4uo-Ribe
Shopify Partner
5486 1321 1625

Yes, we can try this code. 

a.button.button--primary:hover {
    border: 1px solid black;
}

Same instructions, Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Zqdo
Shopify Partner
803 32 63

In your customizer, on the homepage, click on this specific section, and scroll down to where it says Add Custom CSS. Type this in:

.button{
  background: #9cff00;
  border: 1px solid #000000;
}

 

Does this work?

banned

SAN_MSWEB
Shopify Expert
927 111 117

Hi @tourbrandus 


I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.

Please add this css in your bottom of the base.css file:

.banner__content .banner__buttons .button {color: #9CFF00 !important;border: 1px solid #000 !important;}

 

 

 

Regards,

San

If it’s helpful to you, please mark it as a solution.  


Need Help with Shopify Design, Migration, Speed, or Custom tasks?  
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin

ZestardTech
Shopify Expert
5395 971 1293

Hello @tourbrandus ,

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:

.banner__buttons .button.button--primary {
    background-color: #9CFF00;
    border: 1px solid black;
}

ZestardTech_0-1685339383492.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

oscprofessional
Shopify Partner
15846 2371 3074

This is an accepted solution.

Hello @tourbrandus 

You can try this code: it will be helpful to you

Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.

 

a.button.button--primary {
    background: #9cff00 !important;
    border: 1px solid black !important;
}

 

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing