Albertm Posted September 10, 2023 Share Posted September 10, 2023 (edited) On 3/19/2022 at 12:43 AM, tuanphan said: Add to Design > Custom CSS /* Ijorere 20 mobile */ @media screen and (max-width:640px) { body#collection-6233165380b20b5199526d0f { section.ProductList div.ProductList-item.hentry.image-is-loaded { width: calc(33.3333% - 20px) !important; clear: none !important; } div.ProductList-item:nth-child(3n+1) { clear: left !important; }}} hello, I know I'm about a year late but I wanted to ask if you can help me. Your code works to give me two columns but they're small both text and images can you help me make them larger Edited September 10, 2023 by Albertm Link to comment
tuanphan Posted September 13, 2023 Share Posted September 13, 2023 On 9/10/2023 at 9:50 AM, Albertm said: hello, I know I'm about a year late but I wanted to ask if you can help me. Your code works to give me two columns but they're small both text and images can you help me make them larger That code is make item 33% - 20px width, so you need to change to 50%, you can try this new code /* Ijorere 20 mobile */ @media screen and (max-width:640px) { body#collection-6233165380b20b5199526d0f { section.ProductList div.ProductList-item.hentry.image-is-loaded { width: calc(~"50% - 20px") !important; clear: none !important; } div.ProductList-item:nth-child(3n+1) { clear: left !important; }}} if it doesn't work, try 45% If it still doesn't work, can you share url again? We will check it again 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
DaronP Posted September 14, 2023 Share Posted September 14, 2023 My product page only has 1 column where I want it to be 2 columns, 2 images side by side on mobile. It used to be 2 but now it’s changed and I can’t seem to fix it. Any help would be greatly appreciated! Thanks everyone 🫶🏼 Link to comment
Ziggy Posted September 14, 2023 Share Posted September 14, 2023 This problem has been answered a lot recently Remove the CSS code that includes width:48%; and replace it with this: @media only screen and (max-width: 767px) { .products.collection-content-wrapper .list-grid { grid-template-columns: 1fr 1fr; } .products.collection-content-wrapper .grid-main-meta .grid-title { font-size: 1.4em; } } DaronP and tuanphan 2 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com ☕ Did I help? Buy me a coffee? 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) Link to comment
DaronP Posted September 14, 2023 Share Posted September 14, 2023 Yes that worked, thank you so much Ziggy! Ziggy 1 Link to comment
Ziggy Posted September 14, 2023 Share Posted September 14, 2023 (edited) 1 minute ago, DaronP said: Yes that worked, thank you so much Ziggy! Glad that worked for you! Thanks for the like and solution! Edited September 14, 2023 by Ziggy Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com ☕ Did I help? Buy me a coffee? 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) Link to comment
Solution paul2009 Posted September 15, 2023 Solution Share Posted September 15, 2023 @Albertm From September 2023. onwards, you no longer need code to achieve this in Squarespace 7.1. If you're using custom code, it would be better to remove it 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 change the column layout for the desktop layout by putting the preview into Desktop View. Did this help? Please give feedback by clicking an icon below ⬇️ About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. 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