Change one button colour only of a class

Highlighted
Tourist
22 0 0

Hello, I tried to change one button colour of the class .btn--secondary, which represents a number of buttons.

I tried to specifie that one single button using a[href  but I can't change it's colour, any suggestion?

What I added to theme.css:

.btn--secondary a[href="/collections/%E5%9B%8D%E5%AE%B4%E5%8C%96%E5%A6%9D"] {
background-color:#dfaf78!important;
color:#fff
}

0 Likes
Highlighted

Hello.....
Please share your store URL and screenshot.
So that I will check and let you know the exact solution here.

Want to modify or incorporate custom changes on store, Hire us
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
1 Like
Highlighted
Tourist
22 0 0

Thanks brother, please see:

www.heychoices.com

未命名.png

0 Likes
Highlighted
#CollectionSection-1602690066745 a.btn.btn--secondary.btn--small.section-header__link {
    background: #dfaf78;
}

Hello
Add this css at the bottom of
Online Store->Theme->Edit code->Assets->theme.scss.liquid

Want to modify or incorporate custom changes on store, Hire us
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
1 Like
Highlighted
Tourist
22 0 0

Thank you @oscprofessionalsir!!! You are amazing, may I also ask how could I change the background color of the highlighted section as well? (including the little margin bottom part)

High appreciate it !!!

backgrounf.png

0 Likes