Jump to content

Reduce the padding around the Add To Cart button on Product Page

Recommended Posts

Hey Team,

I'm trying to reduce the padding around the Add To Cart button, ideally bringing it closer to the price as well as the text description below. I've tried to find similar request and attempted to use other code recommendations - but they either don't work or are overridden and nothing seems to change.

Any assistance would be greatly appreciated!

Please let me know what info I can add here to offer clarity.

Page Link -> https://www.andynevins.com/store/p/typewriter-text-fx-davinci-resolve

Screenshot 2024-06-21 at 2.29.43 PM.png

Link to comment
  • Replies 1
  • Views 768
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

@AndyNevins87 Hi! To reduce the padding around the 'Add to Cart' button, add this code under Website > Pages > Website Tools > Custom CSS.

#pdp .ProductItem-details .ProductItem-details-checkout {
  row-gap: 0 !important;
}
#pdp .tweak-product-basic-item-description-position-below-add-to-cart-button .ProductItem-details .ProductItem-details-excerpt-below-add-to-cart {
  margin-top: 0px !important;
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.