Jump to content

custom gallery layout instead of image blocks

Recommended Posts

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

 

I am looking to create a custom gallery as i don’t like the layouts of stock ones.

 
I have created a page using image blocks to create my desired layout, however you can't click through to each image automatically (like reading a book) without going back.
Is there a way to make this into a gallery so that it is easy to click and scroll between images?
 
We want a layout that has even spacing. 
 
This is what we have right now, and it's perfect, but it's not a gallery layout, we would love some custom css that allows the grid to be active and clickable once on an image. 
 

Screen Shot 2022-08-05 at 11.50.37 AM.png

Link to comment
  • Replies 11
  • Views 416
  • Created
  • Last Reply

Top Posters In This Topic

Quote

would love some custom css that allows the grid to be active and clickable once on an image.

CSS can not make elements clickable. For that you would need JavaScript. If the effect can be achieved.

Image blocks have a lightbox feature.

891807240_ScreenShot2022-08-05at12_04_36PM.png.a6b716ad223d55f7b510d625f98f872a.png

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
Quote

we need to make all images connect so you can click through

When you say click through do you mean you want the be able to navigate to the next image and see it in a lightbox, kind of like you would with an actual gallery?

Also you've not provided, that I can tell, the URL to the page with the image blocks on it. Without that page it will be hard for anyone to try and come up with code.

I also clarified my previous post. That JavaScript would be needed, if the effect can indeed be achieved. I don't know for sure that it can.

I wonder if it would be possible to restructure an actual gallery into the format you do like. That way you wouldn't have to recreate the more complex functionality, comparatively, of navigating between images in the lightbox.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Is this getting closer?

1590115073_ScreenShot2022-08-08at3_10_34PM.thumb.png.679f3e89a66d9d54604920f1c8aba8a7.png

I used the following CSS to make the first image show the whole image.

.gallery-section .gallery-grid-item:first-child .gallery-grid-item-wrapper img {

  object-fit : contain !important;
  
  }

This code is not a solution but example code to show what might be achieved with a gallery section and some CSS.

The spacing is a bit uneven as I'm mixing stock SS images with examples of your images. Your images have a border around them. The stock ones don't. Obviously if you filled a gallery with your images my example image would look even closer to your images blocks.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.