Lightbox + Pagination

Hi everyone!

Situation:
I created an image gallery by creating a query loop around the image block.
I added pagination and limited the amount of images per page to 20.
I also added the native lightbox feature and grouped the images into an imaginary id, so the lightbox navigation appears.

Problem:
When opening the lightbox in the frontend and navigating through the images, I eventually reach the last item of the page.
When I then navigate to the next item, I would expect it to open the first image of the next page.
But it just restarts at the first image of the current page.

Is there any way I can combine the lightbox with pagination so i can actually navigate through the pages?

Thanks in advance!

Hi there, Jujst wondering if you ever found a solution to this? I have created a gallery the same way as you and have also run into the same problem of the lightbox only navigating to images on that page.

Thanks!

Hi there @mrj!

No, unfortunatly I have yet to find a solution.
I will let you know as soon as I find one.

so AJAX ? when the first page images are done finished switch/show next page content without closing the lightbox ?