Jump to content

Added to the cart button size is too narrow??

Go to solution Solved by Jia,

Recommended Posts

9 hours ago, Claire_auck said:

Site URL: https://deborah-bailey.squarespace.com/shop/p/inside-out-book

When I add a product to the cart, the button size is really narrow. Any ideas how to fix this?
 

https://deborah-bailey.squarespace.com/shop/p/inside-out-book
Pa33word

Thanks!

 

Screen Shot 2022-03-10 at 9.19.08 AM.png

Hi, try adding this code to custom css (Design > Custom CSS) and let me know how it goes 🙂

.sqs-add-to-cart-button {
  width: auto !important;
}

Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified.

Link to comment
16 hours ago, Jia said:

Hi, try adding this code to custom css (Design > Custom CSS) and let me know how it goes 🙂

.sqs-add-to-cart-button {
  width: auto !important;
}

Hi @Jia

Thanks for your reply 🙂 

I add the code but it's still the same.

Just so you know, I am also using code to adjust the initial add to cart button. 
.ProductItem-details .sqs-add-to-cart-button-wrapper {
    width: 90%;
}

 

Any more thoughts?
Cheers
Claire.

 

 

Link to comment
  • Solution
7 hours ago, Claire_auck said:

Hi @Jia

Thanks for your reply 🙂 

I add the code but it's still the same.

Just so you know, I am also using code to adjust the initial add to cart button. 
.ProductItem-details .sqs-add-to-cart-button-wrapper {
    width: 90%;
}

 

Any more thoughts?
Cheers
Claire.

 

 

I checked in the inspector and it seems that the width is not being read, but adding the !important tag fixed it. Try this:

.ProductItem-details .sqs-add-to-cart-button-wrapper .sqs-add-to-cart-button {
  width: 100% !important;
}

Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified.

Link to comment
On 3/11/2022 at 7:15 PM, Jia said:

I checked in the inspector and it seems that the width is not being read, but adding the !important tag fixed it. Try this:

.ProductItem-details .sqs-add-to-cart-button-wrapper .sqs-add-to-cart-button {
  width: 100% !important;
}

Amazing, that worked a treat...thanks!!!!

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.