Jump to content

Making 6 or 3 Image Gallery Grid on a Phone Screen instead of a default 2

Recommended Posts

I cannot find a way how to make my layout stay the same on the phone. Having 6 or at least 3 images in a row on the gallery block. Squarespace only allows to have 2.  I could do it on a product page tho via this code but cant fix it via gallery page

<style>
  /* Product 2 columns mobile */
@media screen and (max-width:767px) {
    .products.collection-content-wrapper .list-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-column-gap: 10px;
}
}
</style>

Also adjust all these mad gaps

Any ideas?

sc.png

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

3 hours ago, MEEE said:

I cannot find a way how to make my layout stay the same on the phone. Having 6 or at least 3 images in a row on the gallery block. Squarespace only allows to have 2.  I could do it on a product page tho via this code but cant fix it via gallery page

<style>
  /* Product 2 columns mobile */
@media screen and (max-width:767px) {
    .products.collection-content-wrapper .list-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-column-gap: 10px;
}
}
</style>

Also adjust all these mad gaps

Any ideas?

sc.png

Kindly share your site with the protected password to check your issue

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, Lightbox Studio plugin
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

@MEEE Add this to Page Header

<style>
  .gallery-grid-wrapper {
    grid-template-columns: repeat(3,1fr) !important;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.