Jump to content

Custom gallery (porfolio page) layout in 7.1.

Recommended Posts

Posted

How can I make my porfolio page showcase images like in the attach. I was trying to customized it with the next code, but I am obviously missing something.  Can someone help, please?

I search the internet in my quest for an answer, but there was nothing. Help please!

 

#gridThumbs {
  .gallery-grid-wrapper {
    grid-template-columns:
    none ! important;
    display:grid;
    grid-template-areas:
    "small1 small2"
    "big1 big1"
    "big1 big1"
"small3 big2"
    "small4 big2"
   "big3 big3 "
"big3 big3 ";
  }  
 
  a:nth-of-type(1) {
  grid-area:small1;  
  }
  a:nth-of-type(2) {
  grid-area:small2;  
  }
  a:nth-of-type(3) {
  grid-area:big1;  
  }
  a:nth-of-type(4) {
  grid-area:small3;  
  }
 a:nth-of-type(5) {
  grid-area:big2;  
  }
 a:nth-of-type(6) {
  grid-area:small4;  
  }
 
  a:nth-of-type(7) {
  grid-area:big3;  
  }
 
  }

 

exampleCapture.PNG

Posted

I have the same question.  The masonary layout is closest but there are some images that would just look better if they took up the whole column.  I need the gallery section though since the lightbox and the ability to scroll through all the pictures after clicking on one is super important.  

Posted
On 4/13/2021 at 3:23 AM, betsymintontech said:

I have the same question.  The masonary layout is closest but there are some images that would just look better if they took up the whole column.  I need the gallery section though since the lightbox and the ability to scroll through all the pictures after clicking on one is super important.  

 

On 4/12/2021 at 4:13 PM, Lisakunchy said:

How can I make my porfolio page showcase images like in the attach. I was trying to customized it with the next code, but I am obviously missing something.  Can someone help, please?

I search the internet in my quest for an answer, but there was nothing. Help please!

 

#gridThumbs {
  .gallery-grid-wrapper {
    grid-template-columns:
    none ! important;
    display:grid;
    grid-template-areas:
    "small1 small2"
    "big1 big1"
    "big1 big1"
"small3 big2"
    "small4 big2"
   "big3 big3 "
"big3 big3 ";
  }  
 
  a:nth-of-type(1) {
  grid-area:small1;  
  }
  a:nth-of-type(2) {
  grid-area:small2;  
  }
  a:nth-of-type(3) {
  grid-area:big1;  
  }
  a:nth-of-type(4) {
  grid-area:small3;  
  }
 a:nth-of-type(5) {
  grid-area:big2;  
  }
 a:nth-of-type(6) {
  grid-area:small4;  
  }
 
  a:nth-of-type(7) {
  grid-area:big3;  
  }
 
  }

 

Can you share link to portfolio page? We can check it easier

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

  • 1 month later...
  • 1 year later...
Posted

Just did a quick test and managed to make every 3rd image full width with this code

 

.gallery-grid-item {
  .gallery-grid-item-wrapper {
      padding-bottom:90%!important;
    }
  &:nth-child(3n) {
    grid-column: span 2;
    .gallery-grid-item-wrapper {
      padding-bottom:45%!important;
    }
  }
}

Adjust the padding bottom to control image ratios.

Creator of SquareHero – Our templates & plugins turn Squarespace websites into superheroes!
https://www.squarehero.store/

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.