Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Custom gallery (porfolio page) layout in 7.1.


Lisakunchy

Question

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

Link to comment

3 answers to this question

Recommended Posts

  • 0

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.  

Link to comment
  • 0
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.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

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