Jump to content

Change colour of selected buttons

Go to solution Solved by Shadmon,

Recommended Posts

Hi,

I can't change the colour of selected buttons so once it's clicked, the text has the same colour as the button and you can't see the text.

Can I ask the way to change this please?

 

Thank you!

Screenshot 2024-04-27 at 18.05.19.png

Link to comment
1 hour ago, Shadmon said:

Please add this CSS to your website: You can add this code to Website > Website Tools > Custom CSS

.ProductItem-details .variant-radiobtn-wrapper input[type="radio"]:checked + label {
    color: #fff !important;
}

Let me know if it works!

It worked! Thank you so much!

If you don't mind me asking something else too, on the same page as you can see in the previous screenshot, the quantity box is square but I'd like to match the rounded shape to match the colours and sizes, is that possible?

Thank you.

Link to comment

Sure, Please add this CSS too:

.ProductItem-details .product-quantity-input input {
    border-radius: 50px;
    border-color: #41413f;
    padding: 15px 30px;
}

You can approve the answer as the solution if it helps you. Good day!

Link to comment
1 hour ago, Shadmon said:

Sure, Please add this CSS too:

.ProductItem-details .product-quantity-input input {
    border-radius: 50px;
    border-color: #41413f;
    padding: 15px 30px;
}

You can approve the answer as the solution if it helps you. Good day!

Thank you so much!

I'm so sorry for a lot of questions but is there a way to make sure that the number in the quantity is in the middle and not on the left side?

Screenshot 2024-04-28 at 00.22.07.png

Link to comment

Here is the updated code. Please use this one instead :

.ProductItem-details .product-quantity-input input {
    border-radius: 50px;
    border-color: #41413f;
    padding: 15px 30px;
    text-align: ;
    text-align: center;
}

let me know if it works!

Link to comment
9 hours ago, Shadmon said:

Here is the updated code. Please use this one instead :

.ProductItem-details .product-quantity-input input {
    border-radius: 50px;
    border-color: #41413f;
    padding: 15px 30px;
    text-align: ;
    text-align: center;
}

let me know if it works!

Great, thank you so much for all your help!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.