Jump to content

How to have 2 columns on the product page on mobile?

Go to solution Solved by paul2009,

Recommended Posts

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

Screenshot (193).png

Edited by Albertm
Link to comment
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

Screenshot (193).png

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

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;
  }
}

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
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 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

@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.

image.thumb.png.ba1376d66f1993bd51c34601cdd5fe0b.png

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

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.