Jump to content

Change gallery to one column instead of two on mobile

Go to solution Solved by Beyondspace,

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution
8 minutes ago, hop said:

Site URL: https://www.jdingphoto.com/

Hi, I'd like to change the display of the "gallery" on my homepage (and two other gallery pages) to only be one column of photos when opened on mobile. For reference, this is the site I'm designing: https://www.jdingphoto.com/

 

 

Do you mean something like this?

image.png.04051c17d68d1b6cad2765030318bf9c.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

You can use the following code to apply on mobile display

@media only screen and (max-width: 767px) {
  .gallery-masonry-list--ready {
    display: flex;
    flex-direction: column;
    height: auto !important
  }
  .gallery-masonry-list--ready .gallery-masonry-item {
    width: 100% !important;
    position: relative !important;
    transform: translate3d(0px, 0px, 0px)!important;
  }
  .gallery-masonry-list--ready .gallery-masonry-item img {
    width: 100% !important;  
  }

  .gallery-masonry-list--ready .gallery-masonry-item-wrapper {
    height: auto !important
  }
}

It will affect all pages.

Support me by pressing 👍 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

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.