Jump to content

Make product page 'purchase' button floating

Recommended Posts

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
.sqs-add-to-cart-button-wrapper {
    position: fixed;
    bottom: 0;
    z-index: 999;
    width: 100%;
    left: 0;
    right: 0;
}
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Thanks @tuanphan that worked like a charm!

Do you know how I can vertically extend the white background I've put behind the button? And how I can make the button solid (eg. solid black button with white text)?

I've currently got:

@media screen and (max-width:767px) {
.sqs-add-to-cart-button-wrapper {
    text-align: center;
     position: fixed;
    background-color: #FFFFFF;
    bottom: 0;
    z-index: 999;
    width: 100%;
    left: 0;
    right: 0;
      box-shadow: 0px -0.1px 10px grey;
}
}

 

IMG-6199.thumb.png.be8aca0c21b9c0570080444e2615d80b.png

Edited by Niculeahwr
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.