Jump to content

Can you please help me display two columns on the mobile site?

Recommended Posts

  • Replies 2
  • Views 225
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Have you tried this code? It works perfectly when I've used it.

https://www.rebeccagracedesigns.com/blog/products-side-by-side-mobile

/* 2 Column Product Grid */
@media only screen and (max-width:640px) {
.products .list-grid {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.products .grid-item {
width: 48%;
}
}

You may want to adjust your font sizes once applying this.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Just tried above code & it doesn't work.

You can try this code

/* products mobile 2 columns */
@media screen and (max-width:767px) {
.products.collection-content-wrapper .list-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-gap: 10px;
}
.list-grid .grid-item .sqs-add-to-cart-button {
    width: auto !important;
    min-width: unset !important;
}
}

 

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

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.