How can I change the color of my variant picker in Be Yours theme?

Solved

How can I change the color of my variant picker in Be Yours theme?

myl1
Excursionist
42 0 6

Hi hi, 

 

I'm new to shopify and I would like to change the button color of the variant picker but I really don't know how 😞 

 

Can somebody help me?

 

It's black now and I want to change it to the following color: #eae0D3

 

Thank you in advance for the help. 

 

Love, 

 

Myl

 

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10211 2427 3081

This is an accepted solution.

Yes, Should be. Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.

View solution in original post

Replies 21 (21)

suyash1
Shopify Partner
11060 1364 1745

@myl1 - can you please share the page link where you have this variant picker?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
myl1
Excursionist
42 0 6

https://atelierpommenl.myshopify.com/products/easy-sweat-feelin-grey?variant=44720002334874 

It's white when you see it, but when you click it it turns black. 

suyash1
Shopify Partner
11060 1364 1745

@myl1 - password to view page?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
myl1
Excursionist
42 0 6

password: beofla

suyash1
Shopify Partner
11060 1364 1745

@myl1 please add this css to the very end of your base.css file and check

 

.product-form__input input[type=radio]+label{color: #000 !important;}

.product-form__input input[type=radio]:checked+label:not(.color__swatch){
    box-shadow: inset 0 0 0 .2rem #eae0D3 !important;}

.product-form__input input[type=radio]:checked+label:not(.color__swatch):after {
    background-color: #eae0D3 !important;  color: #000 !important;}

 

suyash1_0-1717076653511.png

 

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
myl1
Excursionist
42 0 6

Hi hi, thank you. It's not working unfortunately

suyash1
Shopify Partner
11060 1364 1745

@myl1 - I can not see the code added

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
myl1
Excursionist
42 0 6

It's added

suyash1
Shopify Partner
11060 1364 1745

@myl1 - on line 3599 , please add closing bracket } , it will complete the bracket parenthesis for keyframes above and this newly added css will work

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.

Made4uo-Ribe
Shopify Partner
10211 2427 3081

Hi @myl1 

Would you mind to share your store URL? with password if its protected. Thanks!

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.
Made4uo-Ribe
Shopify Partner
10211 2427 3081

Thanks for the info, 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:

 

.product-form__input input[type=radio]:checked + label:not(.color__swatch)::after {
  background-color:#eae0D3 !important;
}

 

And Save. 

If you like to change the text color into black add this code. 

 

.product-form__input input[type=radio]:checked + label:not(.color__swatch) {
  color: black !important;
}

 

And Save. 

Rersult:

Made4uoRibe_0-1717076609451.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
myl1
Excursionist
42 0 6

Hi hi, thank you for your response. Unfortunately it's not working.. 

Made4uo-Ribe
Shopify Partner
10211 2427 3081

Try to add in the Custom Css under the Customize Theme. 

From you customise theme change product on this side. 

Made4uoRibe_0-1717077383240.png

Go to prodcut page > and click the product information at the left 

Made4uoRibe_1-1717077431182.png

Then there will be visible tab on the right. 

Made4uoRibe_2-1717077464032.png

Paste it here. 

 

.product__info-wrapper .product-form__input input[type=radio]:checked + label:not(.color__swatch)::after {
  background-color:#eae0D3 !important;
}
.product__info-wrapper .product-form__input input[type=radio]:checked + label:not(.color__swatch) {
    color: black !important;
}

 

And Save. 

Make sure you refresh the browser. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
myl1
Excursionist
42 0 6

thank you! It works in the preview of the customise theme but not on the 'live' website. How can I fix that? 

Made4uo-Ribe
Shopify Partner
10211 2427 3081

Your not live yet, that why you set password protected right? And did you add the code on the theme that your going to use for live? 

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.
myl1
Excursionist
42 0 6

Yes that's right! It's only in the backoffice of the customise theme now. So what should I do?

Made4uo-Ribe
Shopify Partner
10211 2427 3081

That is set, what you see in the customize theme should be same on the live or preview. And it because your not live yet so you can only see the preview at the moment. 

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.
myl1
Excursionist
42 0 6

Okay, so as soon as we go live tomorrow without password it will be fixed?

Made4uo-Ribe
Shopify Partner
10211 2427 3081

This is an accepted solution.

Yes, Should be. Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
myl1
Excursionist
42 0 6

I will do that! thank you so much!