CanadaSue Posted September 15, 2020 Share Posted September 15, 2020 Site URL: https://www.suemcnenly.com/ Hey all. My add to cart button in 7.1 all of the sudden changed to vertical. Can't figure out how to get it horizontal again. Thanks for any help. p.s. I think it used to be horizontal. It just struck me all of the sudden that it changed to vertical. Link to comment
AnaDavisDesign Posted January 16, 2021 Share Posted January 16, 2021 Did you ever get a fix for this? It happens to me ALL the time. I don't understand why? Link to comment
creedon Posted January 16, 2021 Share Posted January 16, 2021 @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. tuanphan 1 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 Posted January 16, 2021 Share Posted January 16, 2021 (edited) Pockimals.com The site is public now. Edited January 20, 2021 by AnaDavisDesign Link to comment
creedon Posted January 17, 2021 Share Posted January 17, 2021 @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
creedon Posted January 17, 2021 Share Posted January 17, 2021 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. AnaDavisDesign and paul2009 2 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
creedon Posted January 17, 2021 Share Posted January 17, 2021 @AnaDavisDesign Can I just say I want kitty kat Pockimals! 🙂 LOL! AnaDavisDesign 1 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 Posted January 17, 2021 Share Posted January 17, 2021 (edited) 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 January 17, 2021 by AnaDavisDesign creedon 1 Link to comment
AnaDavisDesign Posted February 3, 2021 Share Posted February 3, 2021 @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
creedon Posted February 3, 2021 Share Posted February 3, 2021 @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
AnaDavisDesign Posted February 25, 2021 Share Posted February 25, 2021 That was me. I can't remember what I was trying to do, but I have since unbroke it. 🙂 Thank you! creedon 1 Link to comment
laterrarossa Posted December 1, 2022 Share Posted December 1, 2022 (edited) 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 Edited December 1, 2022 by laterrarossa Added reference photos Link to comment
tuanphan Posted December 2, 2022 Share Posted December 2, 2022 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 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; } } creedon 1 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
laterrarossa Posted December 2, 2022 Share Posted December 2, 2022 @tuanphan That worked, perfectly! Thank you so much. I really appreciate your help. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment