Struggling to change colour of checkout/buy and variant pills

Solved
nightscare
Tourist
7 0 1

Hi

 

I am struggling to change the colour of the following buttons on my product page.#

 

- variant pill selector

- checkout

- add to cart

 

I am using the ride theme , -

 

can anyone advise?

 

thanks

Accepted Solution (1)
laddisahsi
Shopify Partner
129 17 20

This is an accepted solution.

Hi @nightscare 

You can follow the following steps:

1. Please go to the Online Store
2. Then Edit Code
3. Please find the theme.liquid file
4. And add the following code in theme.liquid file above the </head> tag

<style>
.product-form__input input[type=radio]:checked+label {
    background-color: rgb(223,189,99);
}

button#ProductSubmitButton-template--20490219225376__main {
    background-color: rgb(223,189,99);
}


</style>

 

 

 

laddisahsi_0-1695107533586.png

 

 

If this solution is worked, then please Like this and Mark this as accepted solution!

 

Laddi

-Shopify website development, Theme & App Development
-Contact me: WhatsApp


-Email Me
-If this solution is worked, then please Like this and Mark this as accepted solution!

View solution in original post

Replies 5 (5)
laddisahsi
Shopify Partner
129 17 20

This is an accepted solution.

Hi @nightscare 

You can follow the following steps:

1. Please go to the Online Store
2. Then Edit Code
3. Please find the theme.liquid file
4. And add the following code in theme.liquid file above the </head> tag

<style>
.product-form__input input[type=radio]:checked+label {
    background-color: rgb(223,189,99);
}

button#ProductSubmitButton-template--20490219225376__main {
    background-color: rgb(223,189,99);
}


</style>

 

 

 

laddisahsi_0-1695107533586.png

 

 

If this solution is worked, then please Like this and Mark this as accepted solution!

 

Laddi

-Shopify website development, Theme & App Development
-Contact me: WhatsApp


-Email Me
-If this solution is worked, then please Like this and Mark this as accepted solution!
nightscare
Tourist
7 0 1

thanks, this worked!

 

can you advise how i can do the choose options buttons on this page?

also on the pop up page that appear after you click the choose options?

 

Im not entirely sure why these buttons are the colour they are, none of my colour schemes are set to that,

 

 

thanks

David_SHT
Explorer
524 105 100

Hi @nightscare ,

 

This is David at SalesHunterThemes.

Ride theme supports colors scheme allowing us to change the color of the theme, you can use function to change color button. However they have limits.

David_SHT_0-1695108777724.png

 

I recommend that the color of the buttons should be consistent and using one main color will make your theme more harmonious. 

 

You can try to follow these steps:

Go to Online Store -> Themes -> Actions -> Edit code.

Go Assets folder -> base.css file.

Add this following code at the bottom of page.

 

 

.button.product-form__submit,
.product-form__input input[type=radio]:checked+label {
    background-color: #e1be64 !important;
    color: #000 !important;
}

 

 result:

David_SHT_1-1695109611006.png

 

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

David | SalesHunterThemes team

We create fast Shopify themes, focusing on exceptional performance and seamless experience across all devices.

Try our Electro theme Free! (Now at Black Friday price)

EliteCoder444
Shopify Partner
6 0 0

Add these codes to your CSS, And the color codes can be customized as you wish. hope it will work.


.product-form__input input[type="radio"] + label {

background-color: beige;
color: rgba(var(--color-foreground));
color: blue;

}

.product-form__input input[type="radio"]:checked + label {
background-color: red;
color: White;
}

oscprofessional
Shopify Partner
15649 2345 3025

Hello @nightscare 

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

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

 

button#ProductSubmitButton-template--20490219225376__main {
    background: #e1be64 !important;
}
.product-form__input input[type=radio]:checked+label {
    background: #e1be64 !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