Avada Forums Community Forum Lightbox Gallery with only two feature images Reply To: Lightbox Gallery with only two feature images

DAV-Erlangen
Participant
Post count: 11

I now found a quick-and-dirty solution for option (1.). I add a class called ‘gallery-only-first-2-images’ to the specific gallery element.
Then, I added the custom CCS:
.gallery-only-first-2-images :nth-child(n+3){
display:none !important;
}

This removes all but the first to images on the page but leaves all images in the lightbox. Perfomance might be bad and this is only tested in current Firefox.

Looking forward to any help on this.

Best.