Hey everyone, I would like to change the button select color of a specific page on my website. Right now whenever I select a size, the button does not change color at all. Basically, whenever I select a size, I would like the button to change to a purple background with black text if that makes sense. I have attached a screenshot below for a better understanding of what I am talking about. I would like it to change on both desktop and mobile devices. Thanks in advance!
Screenshot:
1 Like
Hi,
Can you share your store URL please
Hi @Spaceboy14
Woould you mind to share your store password? Thanks!
I guess you figure it out yourself.
Oh no, not that page. I mean the page when you click the “view full details” link.
- Go to online store
- Edit Code
- Open your base.css file
- Paste the following code
.product-form__input input[type=radio]+label {color: black !important; background-color: #c7b1ff!important;}
}
- Save.
Let me know if it work by marking it as a solution.
I think there might be a missing bracket? Otherwise it didn’t work
Thank you for the information. Seems like you have a developer who is working in your store. Let them work with that, it needs to clean your base.css. Hard to overide the code that you have.
In CSS, the !important declaration is used to give a specific CSS rule higher specificity and priority, ensuring that it overrides other conflicting CSS rules, regardless of their specificity or source order.
In this case it would be hard for us to give you the solution that you needs if all the buttons cant be called.
Gotcha, so I won’t be able to change the color?
You can, but you need someone to clean theme first.