Jump to content

Need to make custom mobile layout

Recommended Posts

I think we could implement some css code to set on the product collection page

Can you share your site with the protected password so I can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Here's a good resource for putting your store into two columns:

https://insidethesquare.co/squarespace-tutorials/2-column-mobile-store

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
2 hours ago, Beyondspace said:

I think we could implement some css code to set on the product collection page

Can you share your site with the protected password so I can take a look?

right now, i do have a layout like that, but it is not repeated. how can i change that?

 

/* Shop Page - Mobile Layout */
@media screen and (max-width:767px) {
.products.collection-content-wrapper .list-grid {
    display: block !important;
}
.products.collection-content-wrapper .list-grid .grid-item:nth-child(n+5), .products.collection-content-wrapper .list-grid .grid-item:nth-child(n+17) {
    width: 50% !important;
    float: left !important;
}
.products.collection-content-wrapper .list-grid .grid-item:nth-child(2n+1) {
    clear: left !important;
}
.products.collection-content-wrapper .list-grid .grid-item:nth-child(n+13) {
    clear: both !important;
    width: 100% !important;
}}
 
Link to comment

Here is the code you can try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  .products.collection-content-wrapper .list-grid .grid-item {
    width: 50% !important;
    float: left !important;
  }
  .products.collection-content-wrapper .list-grid .grid-item:nth-child(12n + 7){
    clear: left !important;
  }
  .products.collection-content-wrapper .list-grid .grid-item:nth-child(12n + 1), .products.collection-content-wrapper .list-grid .grid-item:nth-child(12n + 2), .products.collection-content-wrapper .list-grid .grid-item:nth-child(12n + 3) ,.products.collection-content-wrapper .list-grid .grid-item:nth-child(12n + 4) {
    width: 100% !important;
  }
}

Support me by pressing 👍  or marking as solution if this useful for you

Edited by Beyondspace
Fix for space on some 50% items

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 11 months later...
On 11/20/2023 at 12:30 AM, thumone said:

Hi, 

I'm on Avenue 7.0 and have tried almost every code that people have mentioned and still no luck on getting products to appear in 2 columns on the mobile shop. 

Paulambrett.com  

Any help is appreciated! 

Use this CSS code

@media screen and (max-width:700px) {
div#productList {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-gap: 5px 5px;
}
div#productList:before {
    display: none;
}
}

 

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.