Shopify themes, liquid, logos, and UX
I want to adjust the height and width of my size boxes in my product page.
My website is: https://stelleworld.com/collections/women-yoga-studio/products/softluxe-leggings
Solved! Go to the solution
This is an accepted solution.
Use .opt-label--btn instead then
label.opt-label--btn { min-width: 5.5em !important; min-height: 64px !important; }
swatches would be label.opt-label--swatch
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Hi @momo12345 👋 in a custom css setting try the following CSS and tailor sizes to need.
⚠️Don't make buttons to small , or so large, they are hard to use on touch devices or people with mobility issues.
label.opt-label {
min-width: 5.5em !important;
min-height: 64px !important;
}
https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css
Test if the !important keyword is unneeded this can help with future flexibility or additional or competing styles.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Hi PaulNewton,
It does make them bigger, but it does for both the color and size variant and I only want it for the size boxes.
This is an accepted solution.
Use .opt-label--btn instead then
label.opt-label--btn { min-width: 5.5em !important; min-height: 64px !important; }
swatches would be label.opt-label--swatch
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
It works great! Thank you!
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024