Hi,
I have a page with two sections, each containing a dynamic grid of images (looper with ACF gallery). Linked to each grid is a modal to create a lightbox. The first section works fine. When I click on any image the correct image opens in the modal. However, for the second section, it invariably goes to the first image.
I have tried using the custom attribute data-x-slide-id
on each section, using each modal’s ID, but this does not resolve the issue.
Below are a couple of screenshots of the page being inspected and the CS Inspector. please note that the second section is set-up in the same way as the top section in the screenshot, but with the appropriately different IDs.
Any thoughts on how I can resolve this, please?
Thanks,
Christopher