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?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.