cinnamoncat Posted September 11 Share Posted September 11 Hello, When you view my store in mobile, the items are in one column. Is there a way for me to make it two columns on mobile? (I would like to keep it 4 columns on desktop). Site: https://www.dethreads.net TIA! Link to comment
Solution Lesum Posted September 11 Solution Share Posted September 11 @cinnamoncat You can add 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; } } 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
cinnamoncat Posted September 11 Author Share Posted September 11 Hm, that did not seem to work. Here is all the CSS I currently have including your suggestion: .header-nav-item a:hover { font-weight: bold; } .nested-category-breadcrumb-link { font-weight: bold; } .category-link { font-weight: bold; } button.cart-row-edit::before { content:'Add Notes' } button.cart-row-edit span { display:none; } /* Fix mobile shifting */ @media screen and (max-width:700px) { .header-title-nav-wrapper { max-width: 57% !important; } } @media only screen and (max-width: 575px) { .products.collection-content-wrapper .nested-category-children { flex-wrap: wrap !important; overflow: visible !important; } .products.collection-content-wrapper .nested-category-breadcrumb-list-item .nested-category-breadcrumb-link { margin-left: 0 !important; } } @media only screen and (max-width: 767px) { .products.collection-content-wrapper .list-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; } } Link to comment
Lesum Posted September 11 Share Posted September 11 (edited) @cinnamoncat There's an error on the code you edited. You added "margin-center: 0 !important;". Change it to "margin-left: 1.5vw !important;" Because of the error on your edited code, last block of code isn't working. Edited September 11 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
cinnamoncat Posted September 11 Author Share Posted September 11 hi @Lesum I changed it back to margin-left and still only one column .header-nav-item a:hover { font-weight: bold; } .nested-category-breadcrumb-link { font-weight: bold; } .category-link { font-weight: bold; } button.cart-row-edit::before { content:'Add Notes' } button.cart-row-edit span { display:none; } /* Fix mobile shifting */ @media screen and (max-width:700px) { .header-title-nav-wrapper { max-width: 57% !important; } } /* show all categories */ @media only screen and (max-width: 575px) { .products.collection-content-wrapper .nested-category-children { flex-wrap: wrap !important; overflow: visible !important; } .products.collection-content-wrapper .nested-category-breadcrumb-list-item .nested-category-breadcrumb-link { margin-left: 1.5vw !important; } } @media only screen and (max-width: 767px) { .products.collection-content-wrapper .list-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; } } Link to comment
cinnamoncat Posted September 11 Author Share Posted September 11 Nevermind, the two columns show on the actual mobile site, but does not update on squarespace emulator for some reason. Thank you!! Link to comment
Lesum Posted September 11 Share Posted September 11 Just now, cinnamoncat said: Nevermind, the two columns show on the actual mobile site, but does not update on squarespace emulator for some reason. Thank you!! Great! Yes, Squarespace Editor is having some technical issues for the last month or so. When you apply custom code, it doesn't show up immediately unless you reload the page. cinnamoncat 1 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
Ziggy Posted September 14 Share Posted September 14 As a note to anyone wanting a 2-column grid on their mobile product page, this feature has been added to the store section settings. You can find it by editing the store section and toggling the mobile view: cinnamoncat 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? 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