Essentialsbymhd Posted September 9 Share Posted September 9 I'm trying to make the product list on the mobile split into two columns instead of one. I'll tried code I see online but it doesn't work. Please help me. thank you Link to comment
Lesum Posted September 9 Share Posted September 9 @Essentialsbymhd Would it be possible to share your site URL so I can take a look? Thanks! If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
Essentialsbymhd Posted September 9 Author Share Posted September 9 https://www.essentialsbymhd.com/ Link to comment
Lesum Posted September 9 Share Posted September 9 @Essentialsbymhd You can try adding this code snippet under Custom CSS panel: @media only screen and (max-width: 767px) { .products.collection-content-wrapper .list-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; } .products .grid-item { width: 100% !important; } } If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
Lesum Posted September 9 Share Posted September 9 (edited) @Essentialsbymhd What's the URL of this page? I'm seeing products are now displaying in two column on mobile. Please check on your browser or reload your Squarespace editor. Edited September 9 by Lesum If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
Essentialsbymhd Posted September 9 Author Share Posted September 9 You are right! its actually working on my phone as well. Not sure why its showing like that on my edit page. But as long as it works! Thank you so much! btw another quick question. is there a way to apply search bar to product pages without having to add it manually into each one? for now I have it in the footer as that would apply to all. Lesum 1 Link to comment
Lesum Posted September 9 Share Posted September 9 @Essentialsbymhd Unfortunately, it's not possible with Squarespace's native functionality. As of now, we can only add search bar manually on product pages. If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
Solution paul2009 Posted September 15 Solution Share Posted September 15 On 9/9/2023 at 6:14 PM, Essentialsbymhd said: I'm trying to make the product list on the mobile split into two columns instead of one. I'll tried code I see online but it doesn't work. You no longer need code to achieve this because Squarespace have just added this as a feature to Squarespace 7.1. @Essentialsbymhd If you've used code to add two columns, it will be safer to remove this and use the built-in feature instead. To access this feature, go to your Store page and click Edit. Put the preview into Mobile View and then click Edit Section. You’ll be able to update your column layout to two columns instead of one. Note that this setting only affects the style of the mobile page. You can independently adjust the number of columns in the desktop layout by putting the preview into Desktop View. Did this help? Please give feedback by clicking an icon below ⬇️ About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
Shyla Posted September 24 Share Posted September 24 Anyone know why all of a sudden my products on mobile are stuck inset? Even if I toggle to FULL it does nothing. So frustrating! This just happened one day and no matter if I do 1 column or 2 it will not project them as full size in the screen. As you can see in the single column example the products are aligned to the left.... I am thinking there was an update to mobile format and this is a bug!? Link to comment
paul2009 Posted September 25 Share Posted September 25 12 hours ago, Shyla said: Anyone know why all of a sudden my products on mobile are stuck inset? Even if I toggle to FULL it does nothing. So frustrating! This just happened one day Squarespace 7.1 didn't have a 2-column option until recently, so it looks like you may have added some Custom CSS to display the Store page using two columns. They've just added this feature and, in doing so, they changed the way the page was built and this will have 'broken' the outdated CSS and caused unwanted effects like this. You should be able to resolve this by removing the outdated CSS and then using the built-in setting to choose the number of columns. Did this help? Please give feedback by clicking an icon below ⬇️ Shyla 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
cloudhymns Posted September 25 Share Posted September 25 (edited) Hi! A long while ago, I found code to make it so my products would appear in two columns instead of just one on mobile. For some reason, the product page is now displaying them still in two columns— just completely bypassing the second column. I haven't made any conscious changes to the code, so I have no clue what happened. Any help for this fix would be greatly appreciated. Edited September 25 by cloudhymns Switch "rows" to "columns" in title. Link to comment
Shyla Posted September 27 Share Posted September 27 LOL Thank you for reminding me I had custom CSS installed for this to function prior to the standard version offering this. I have it all fixed now 🙂 Link to comment
Shyla Posted September 27 Share Posted September 27 On 9/25/2023 at 11:30 AM, cloudhymns said: Hi! A long while ago, I found code to make it so my products would appear in two columns instead of just one on mobile. For some reason, the product page is now displaying them still in two columns— just completely bypassing the second column. I haven't made any conscious changes to the code, so I have no clue what happened. Any help for this fix would be greatly appreciated. Just get rid of the custom CSS, they have made the 2 column layout a standard feature now when you edit the section. 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