Jump to content

Change size of add to cart button on different pages

Go to solution Solved by paramjeet.kour08,

Recommended Posts

I used this code,
.sqs-add-to-cart-button {
    width: 50% !important;
}

to change the add to cart button size and it looks good on the main product page but when you open the quick view light box it is too squashed. Is there a way to make it different sizes depending on the page?

image.png

Link to comment
  • Replies 5
  • Views 648
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

SocialStar

Posted Images

  • Solution
Posted (edited)
Use this code 

@media screen and (min-width: 768px)
.tweak-product-basic-item-add-to-cart-standalone .ProductItem .sqs-add-to-cart-button-wrapper {
    width: 100%;
}

for all buttons then add in custom css box.

 

 

 

Edited by paramjeet.kour08

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
17 hours ago, paramjeet.kour08 said:
Use this code 

@media screen and (min-width: 768px)
.tweak-product-basic-item-add-to-cart-standalone .ProductItem .sqs-add-to-cart-button-wrapper {
    width: 100%;
}

for all buttons then add in custom css box.

Thanks, that worked 🙂

 

 

 

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.