Jump to content

Add-On Product Custom Spacing

Go to solution Solved by tuanphan,

Recommended Posts

@tuanphan Screenshot2024-02-13at1_08_27PM.thumb.png.a37ad72f558354497cb3f62ac488f2bd.png

Is anyone able to help me figure out how to adjust the spacing in the Add-On Product Section? The "Select a Size" width seems too large, and "Add to Estimate" width is obviously too small. I've tried playing with padding but have had no luck. It looks great on mobile, but desktop needs some work!

Thanks!

Link to comment
  • Solution

Add this code to Website > Website Tools > Custom CSS (it will affect all products)

#page .ProductItem-details-checkout .product-variants {
    max-width: 150px !important;
    flex: unset !important;
}
#page .ProductItem-details-checkout .sqs-add-to-cart-button-wrapper {
    min-width: 150px !important;
}

Add this code to Additional Info > Code Block > If you want code affect specific product only

<style>
  #page .ProductItem-details-checkout .product-variants {
    max-width: 150px !important;
    flex: unset !important;
}
#page .ProductItem-details-checkout .sqs-add-to-cart-button-wrapper {
    min-width: 150px !important;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.