How do I change the button size in variant selector? and if possible to remove the character inside the button as well. thanks
password:666
How do I change the button size in variant selector? and if possible to remove the character inside the button as well. thanks
password:666
Hey @X-DREAM ,
You can change the button size by modifying the CSS for the respective selectors
Please follow the following steps
Go to your online store and select Themes from left panel
Press 3 dots menu in center (on the left of Customize button) and then Edit Code
Open the file product-options-radio.css (you can search for it)
Search for this .#product-options-radio-item-input.!sold-out+.#product-options-radio-item-body
Here you can add new properties like width and height and tweak their values to get desired effect
Your final code should have 2 new entries like this
This will change variant picker size like this (you can play with values of width and height)
Thanks
Yash Garg
I don’t want change the size of the pic inside the button, I want make the whole button smaller.
Thanks
In that case you can choose a smaller value of widht and height
ok I see.
so how about the name inside the button, can be removed??
Add this to the css file, that should remove the name
.#product-options-radio-item-media + .#product-options-radio-item-value {
display: none;
}
Thanks
Yash Garg
Search for this .#product-options-radio-item-media in that css file
You will see a single width property in that
Increase it as per requirement