I'm trying to have a few galleries on one page, and I want each of them to open separately when you click on them. I.e. if you click on the first gallery, it will only let you click through pictures from that gallery. If you click on the second gallery, it will only let you click through pictures from the second gallery, and so on. Is there a way to adapt the code provided here to allow for this. My guess is that you would need multiple pswp blocks and you would then have to provide each of them a unique id that you can track in the javascript file, although I am not sure how to do that. Any help is appreciated!
I'm trying to have a few galleries on one page, and I want each of them to open separately when you click on them. I.e. if you click on the first gallery, it will only let you click through pictures from that gallery. If you click on the second gallery, it will only let you click through pictures from the second gallery, and so on. Is there a way to adapt the code provided here to allow for this. My guess is that you would need multiple
pswp
blocks and you would then have to provide each of them a unique id that you can track in the javascript file, although I am not sure how to do that. Any help is appreciated!