Jump to content

Making variant drop-down menus side-by-side

Go to solution Solved by Beyondspace,

Recommended Posts

Posted

Site URL: https://laurenalanedesign.com/shop/p/leo

Each of my products have drop-down menus for "size" and "quantity". I'd like to make the 2 drop-down menus appear side-by-side instead of stacked on the desktop view. On mobile, I'd like them to stay stacked, so they don't get too tiny.

I also can't figure out how to make them the same width -- "quantity" always shows up smaller, even when I adjust the "form width" option in the section editor.

Thanks in advance for any help you can offer! 🙂

Screen Shot 2022-07-19 at 6.22.50 PM.png

  • Solution
Posted (edited)
On 7/20/2022 at 6:37 AM, LaurenAlaneDesign said:

Site URL: https://laurenalanedesign.com/shop/p/leo

Each of my products have drop-down menus for "size" and "quantity". I'd like to make the 2 drop-down menus appear side-by-side instead of stacked on the desktop view. On mobile, I'd like them to stay stacked, so they don't get too tiny.

I also can't figure out how to make them the same width -- "quantity" always shows up smaller, even when I adjust the "form width" option in the section editor.

Thanks in advance for any help you can offer! 🙂

Screen Shot 2022-07-19 at 6.22.50 PM.png

Try adding to Home > Design > Custom Css

.ProductItem-summary .product-quantity-input,.ProductItem-details .product-variants  {
  float: left;

}
.ProductItem-summary .product-quantity-input {
  margin-left: 5px; /*space between quantity and variants select*/
}
.ProductItem-summary .product-quantity-input input {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}
.ProductItem-details .sqs-add-to-cart-button-wrapper {
  width: 100%;
}

Not sure what you mean on mobile. Can you describe it more detail?

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
12 hours ago, bangank36 said:

My testing

image.thumb.png.bce1aaeec0aaa7d9bf7d8132eaf80217.png

Thank you so much, I appreciate it! Do you know how I would add some space between the "Size" and "Quantity" boxes, and make the "Add to cart" button longer?

Disregard the mobile question, it turns out it isn't necessary!

Thanks again!

Posted
11 hours ago, LaurenAlaneDesign said:

Thank you so much, I appreciate it! Do you know how I would add some space between the "Size" and "Quantity" boxes, and make the "Add to cart" button longer?

Disregard the mobile question, it turns out it isn't necessary!

Thanks again!

I updated my previous code, kindly try it again

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.