Jump to content

How do I limit the number of columns in gallery pages? (SS v.7.0)

Recommended Posts

Site URL: https://swan-ferret-9gx2.squarespace.com/sketchbook

Hi!

How do I limit the amount of columns in a gallery page in version 7.0? I would like to limit it to a maximum of 3 columns wide on desktop (while having a max width so the images don't extend all the way full width), while also having the option to tweak the number of columns in mobile view. I think there is this functionality in 7.1, but I put a priority into having a sidebar navigator, that's why I'm on 7.0 (Wells template).

I really like how gallery pages function (both in ease of management and having lightbox style navigation) so I'm avoiding doing this via image blocks.

I was wondering if any css code for this exists.

 

(In the midst of making my first squarespace illustration portfolio website. am using this as reference https://fartsforart.com/tagged/Latest)

Thank you!

1.png

1b.png

Link to comment
  • Replies 6
  • Views 1.2k
  • Created
  • Last Reply

Could you enable site wide password to help check current set up?

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

Hey! thanks for the reply. Just enabled site wide password: "ineedhelp"

 

To clarify, I was hoping to make these changes to the "SKETCHBOOK" page (a gallery style page) (was experimenting with alternatives for the other pages so you can ignore those!)

Link to comment
11 hours ago, GUNKMAN said:

Hey! thanks for the reply. Just enabled site wide password: "ineedhelp"

 

To clarify, I was hoping to make these changes to the "SKETCHBOOK" page (a gallery style page) (was experimenting with alternatives for the other pages so you can ignore those!)

Password seems not working anymore, but you can follow this article to set the masonry grid style using pure css to limit the column count

CSS Masonry layouts: Responsive, Lightweight, and EASY! (w3bits.com)

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
12 minutes ago, GUNKMAN said:

I checked and have changed the password if still you want to take a look!

Site: https://swan-ferret-9gx2.squarespace.com/sketchbook

Password: ineedhelp2

 

I will also check out the guide though! thanks

This may helps

/* Masonry grid */
.collection-type-gallery.enable-gallery-thumbnails.thumbnail-view #thumbnails {
  transition: all .5s ease-in-out;
  column-gap: 30px;
  column-fill: initial;
  height: auto !important;
}

/* Masonry item */
.collection-type-gallery #thumbnails .thumb {
  margin-bottom: 30px;
  display: inline-block; /* Fix the misalignment of items */
  vertical-align: top; /* Keep the item on the very top */
  position: static;
  -width: auto !important;
  height: auto !important;
}
/* Masonry on tablets */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .collection-type-gallery.enable-gallery-thumbnails.thumbnail-view #thumbnails {
    column-count: 2;
  }
}

/* Masonry on big screens */
@media only screen and (min-width: 1024px) {
  .collection-type-gallery.enable-gallery-thumbnails.thumbnail-view #thumbnails {
    column-count: 3;
  }
}

image.thumb.png.a2b2cc63320f51afbd97f957318a29ee.png

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

cool! that seemed to put them into 3 columns! but 2 problems seemed to have come up from this:

1- template does not seem to resize properly (gaps will suddenly get very big, images will start overlapping or extra columns start appearing when window is resized) (this doesn't happen with the default layout)

2- image chronological order has become non-horizontal (1,3,5,2,5,6 instead of 1,2,3,4,5,6 horizontally)

 

but I think this is on the right track so far, thank you for pointing me in the right direction! 

1.png

2.png

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.