Jump to content

Add to cart button changed to vertical

Recommended Posts

  • 4 months later...

@AnaDavisDesign

Please post the URL to a page where this is happening.

If your site is not public please set up a site-wide password, if you've not already done so. Post the password here.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

@AnaDavisDesign

I've not seen the vertical button issue before. It looks like a SS bug to me.

Add the follow to Store Settings > Advanced > Page Header Code Injection for the store page.

<style>

  /* work around vertical add to cart button issue */
  
  .ProductItem-details .sqs-add-to-cart-button-wrapper {
  
    display: inline-block;
    width: auto;
    
    }
    
  </style>

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
10 hours ago, AnaDavisDesign said:

I have a few other questions, too:

Please start a new thread for these additional issues. It is harder for everyone when there are multiple issues trying to be addressed in the same thread.

Ideally one issue per thread is best. You can create as many threads as needed to address each of your issues.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Thank you @creddon. I will delete the other issues from this thread and create new ones. 

The code injection worked like a charm. TY!

We have a kitty in the works for the second production run! 😄 We are getting closer to publishing the site. The product is due into our warehouse in just a couple weeks. :)))

Edited by AnaDavisDesign
Link to comment
  • 3 weeks later...

@creedon the vertical cart button is back on mobile on my site https://pockimals.com/shop/p/pink-tshirt, but the page code injection you gave me is still there... it just stopped working.

I changed the padding around the button, and that fixed the vertical problem, but now it's a very small add to cart button. Any other thoughts? We'd prefer a larger, horizontal button.

Our site is live now, so no password needed. 🙂

Thanks!

Link to comment

@AnaDavisDesign

Someone broke my code by adding the following to it.

google-site-verification=z51nlLuZixGB-8zr5PXdXoQLqEftfawS6scj-aIhZqE

This is not CSS. Remove that and the code will work again. Please remove the added padding as well.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 4 weeks later...
  • 1 year later...

Good evening. I finally am getting the layout of my product pages to look the way I want on the desktop version of my site, but when viewing the individual product pages in mobile view, the Add to Cart button becomes vertical. I have tried the code suggestions on this thread, as well as adjusting the text to something shorter, the margins, the padding, and all other things I could think of to no avail. Does anyone here know how I may fix the mobile view to show the Add to Cart button horizontally without breaking my desktop formatting? 

URL: https://laterrarossa.com

Example Product Page: https://laterrarossa.com/shop/p/sumatra-kerinci-pendekar-natural

image.thumb.png.97bfcad5bb7a583b1a0b3c16d4d5e5a6.png

image.png.57884ae1629fc7f7a4816c58aeca0b76.png

Edited by laterrarossa
Added reference photos
Link to comment
19 hours ago, laterrarossa said:

Good evening. I finally am getting the layout of my product pages to look the way I want on the desktop version of my site, but when viewing the individual product pages in mobile view, the Add to Cart button becomes vertical. I have tried the code suggestions on this thread, as well as adjusting the text to something shorter, the margins, the padding, and all other things I could think of to no avail. Does anyone here know how I may fix the mobile view to show the Add to Cart button horizontally without breaking my desktop formatting? 

URL: https://laterrarossa.com

Example Product Page: https://laterrarossa.com/shop/p/sumatra-kerinci-pendekar-natural

image.thumb.png.97bfcad5bb7a583b1a0b3c16d4d5e5a6.png

image.png.57884ae1629fc7f7a4816c58aeca0b76.png

Find this code in CSS box

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

change it to

@media screen and (min-width:992px) {
.sqs-add-to-cart-button {
    width: 35% !important;
}
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.