Jump to content

Gallery in mobile

Recommended Posts

3 hours ago, mportch said:

Hi

I'm looking for code - How do I make this page switch to only 1 image per row in mobile view?

https://smilodon-ocelot-my5f.squarespace.com/gallery

Pass: Hello

image.thumb.png.1d3c90f84dafa046dc5da6488b95163b.png

Screenshot 2022-11-26 at 3.42.43 pm.png

You can try adding to Home > Design > Custom css

@media only screen and (max-width: 767px) {
  .gallery-masonry-wrapper.gallery-masonry-list--ready {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    height: auto !important;
  }
  .gallery-masonry-item {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    transform: translate3d(0,0,0) !important;
  }
  .gallery-masonry-lightbox-link, .gallery-masonry-item-wrapper {
    height: auto !important;
  }
  .gallery-masonry-lightbox-link img {
    width: 100% !important;
  }
}

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

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

My testing

image.thumb.png.a52ea5c5316ada7b4d074e3b6e22ab6a.png

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.