Shopify themes, liquid, logos, and UX
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
Solved! Go to the solution
This is an accepted solution.
Add this to the css file, that should remove the name
Hey @X-DREAM ,
You can change the button size by modifying the CSS for the respective selectors
Please follow the following steps
1) Go to your online store and select Themes from left panel
2) Press 3 dots menu in center (on the left of Customize button) and then Edit Code
3) Open the file product-options-radio.css (you can search for it)
4) Search for this .\#product-options-radio-item-input.\!sold-out+.\#product-options-radio-item-body
5) 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??
This is an accepted solution.
Add this to the css file, that should remove the name
It works perfect, the name been removed and button can change to smaller, but the picture inside the button is too small, if anyway can make the pic inside the button bigger? I tried the below code, it not working.
Thanks
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
that can increase the whole button size like below. or is that anyway maybe I can use the picture replace the button?
Thanks
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024