Jump to content

Add to cart buttons larger than the product blocks

Recommended Posts

Site URL: https://gregmaroney.com/sheet-music

All of my buttons changed size in the last few days. Many are now larger than the product blocks. 

Design/buttons/  doesn't have size as an editable feature.

I know I had made them all smaller when I designed the site, but now can't find where or figure out why it changed on its own.

I was researching and found this answer:  In HOME>DESIGN>CUSTOM CSS 

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

but it didn't change anything.

Please help, this is making me sweat

Link to comment
  • Replies 10
  • Views 1.4k
  • Created
  • Last Reply

As I said above, I've been to Home/Design/Buttons and there are 3 edits, Stye, Shape and Padding. No size. 

I know when I first put the site together I found where to change the button size because I have a page with 250 product blocks (I know i is not an ideal layout, wanted a table but alas...). The buttons that changed are now overlapping and making the page confusing and unusable on some formats.

Link to comment
On 3/21/2020 at 2:03 PM, lamaroney said:

Site URL: https://gregmaroney.com/sheet-music

All of my buttons changed size in the last few days. Many are now larger than the product blocks. 

Design/buttons/  doesn't have size as an editable feature.

I know I had made them all smaller when I designed the site, but now can't find where or figure out why it changed on its own.

I was researching and found this answer:  In HOME>DESIGN>CUSTOM CSS 


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

but it didn't change anything.

Please help, this is making me sweat

This has had me scratching my head too but I've finally figured it out:

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

Adjust it to a size that suits you. Hope it works for you!

Link to comment

This is happening in product blocks. And the buttons are larger than the blocks on one page. How can that even happen?

and the code you suggested, you’ll notice above, I already used to no effect.

ive tried emailing Squarespace and so far two answers that were completely worthless. One said to check out the design and style tips video and the other that I have custom code, and that might have caused it. The code I tried using to fix it.

getting pretty frustrated.

CAA9D07B-54D5-4F6B-83F9-E288B8E8F7F6.png

Link to comment
8 hours ago, lamaroney said:

This is happening in product blocks. And the buttons are larger than the blocks on one page. How can that even happen?

and the code you suggested, you’ll notice above, I already used to no effect.

ive tried emailing Squarespace and so far two answers that were completely worthless. One said to check out the design and style tips video and the other that I have custom code, and that might have caused it. The code I tried using to fix it.

getting pretty frustrated.

 

You're using width which is why it isn't working. Use min-width instead. This is my CSS:

.product-block .sqs-add-to-cart-button {
  min-width:50% !important;
}

 

Link to comment

superhanss, it happened before trying that code. I have since removed it and still the problem exists. The third answer from Squarespace was to disable all 250 Add to Cart buttons, so that it would be like a landing page instead.  The fourth answer was to say that it was an issue on their end but fixes are made in order of popular demand, so I should change to page for now to only 4 items per row instead of 6, since it may be a long time (if ever) that it is addressed.

what I really wanted was a sortable table with 4 columns.

1. Song title

2. Preview image icon for the first page of the sheet music

3. buy button for pdf sheet music

4. Buy button for mp3

I wrote to the makers of the popular table code and asked about buy buttons within the table and the answer was no.

It looks like I may just have to look around for a different platform.

Link to comment
  • 5 weeks later...
On 3/22/2020 at 8:35 AM, Superhanss said:

This has had me scratching my head too but I've finally figured it out:


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

Adjust it to a size that suits you. Hope it works for you!

This worked for me. Thanks!

Link to comment
  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

Guest
This topic is now closed to further replies.

×
×
  • 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.