Jump to content

Moving 'Add to Cart' button on product pages - Mobile view only

Go to solution Solved by Lesum,

Recommended Posts

Hi,

Because the site sells one off items and delivery needs to be discussed prior to selling, the add to cart button is hidden. On the desktop view the button is below the product description, so doesn't effect the spacing but on mobile view it is above the description, so leaves a weird gap. Any way to change the position on just the mobile view?

Thanks! 

Screenshot 2024-07-13 at 11.09.13 am.png

Screenshot 2024-07-13 at 11.10.12 am.png

Link to comment
  • Replies 4
  • Views 585
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution

@RJ29 You can add this code in Website > Pages > Website Tools > Custom CSS

@media screen and (max-width: 767px) {
#pdp .ProductItem-details .ProductItem-product-price {
    margin-bottom: 0 !important;
}

#pdp .ProductItem-details .ProductItem-product-price .product-price {
    margin-bottom: 0 !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.