Jump to content

Reduce the size of the Product Add-On box on a product page

Recommended Posts

  • Replies 9
  • Views 2.1k
  • Created
  • Last Reply

Top Posters In This Topic

.product-details .pdp-product-add-ons .add-on-card {
    display: flex;
    align-items: center;
    border: 1px solid grey;
    padding: 16px;
    margin-top: 22px;
    flex-wrap: wrap;
    width: 211px;
}

past this code in custom css box

Hi ! I am Paramjeet kaur Top rated SquareSpace Web Designer and Web Developer with SEO For Web Sites. Working Now As freelancer With lowest Rate. Rate $20 per hour.  Till date, I have created over 300 + websites in Squarespace.  Contact Me    Email

Link to comment
On 3/14/2024 at 6:13 PM, maxmedia said:

Thank you for that, it's a welcome improvement.

Is it possible to also reduce the the size of the circle button with the '+' ?

 

Screenshot 2.jpg

Use this CSS code

.product-details .pdp-product-add-ons .add-on-add-to-cart-wrapper .sqs-add-to-cart-button {
    width: 30px !important;
    height: 30px !important;
}
svg.plus-icon {
    width: 9px !important;
}

 

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
  • 3 months later...

I find myself working on this, as well. I'm trying to make the product add-on card as thin as possible, with the thumbnail, the title/price and the + button lined up nicely from left to right, but the + button always seems to want to migrate to the bottom right, and the title/price gravitates towards top left, making the whole box bulkier than it needs to be. Trying to make everything centered between the top and bottom of the box, wondering if you might be able to help? Thank you as always for all your assistance!

product add-on card.png

Link to comment
On 6/30/2024 at 11:37 PM, marbleandmilkweed said:

I find myself working on this, as well. I'm trying to make the product add-on card as thin as possible, with the thumbnail, the title/price and the + button lined up nicely from left to right, but the + button always seems to want to migrate to the bottom right, and the title/price gravitates towards top left, making the whole box bulkier than it needs to be. Trying to make everything centered between the top and bottom of the box, wondering if you might be able to help? Thank you as always for all your assistance!

product add-on card.png

Can you share link to this product? We can check easier.

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
  • 2 weeks later...
On 7/16/2024 at 2:08 AM, marbleandmilkweed said:

Oh dear, sorry for my very late reply, got a little sidetracked! This product is here: https://www.marbleandmilkweed.com/shop/p/roseandtulsifacialtonic-100ml

Thank you again so much!

You can use this CSS to Custom CSS box

.add-on-add-to-cart-wrapper.sqs-add-to-cart-button-wrapper {
    margin: 0px !important;
}
.product-details .pdp-product-add-ons .add-on-card:first-of-type {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}
.product-details .pdp-product-add-ons .add-on-details .product-price {
    margin: 0px !important;
}

image.png.e328d7ccb6da132cda7a2fc21c490fb2.png

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
On 7/21/2024 at 11:25 PM, marbleandmilkweed said:

This worked brilliantly, thank you so much! Is there a way at all to add a title to the product add-ons section? Just one line of text above the add-on cards? Many thanks, as always for your kind help!

You can use this CSS code

#page .ProductItem-details-checkout .pdp-product-add-ons>div:first-child:before {
    content: "here is addong products";
    position: absolute;
    top: 0;
    font-size: 30px;
    left: 0;
}
#page .ProductItem-details-checkout .pdp-product-add-ons {
    position: relative;
}

 

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.