Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Separate Galleries on One Page #85

Open
jehand opened this issue Apr 11, 2023 · 0 comments
Open

Multiple Separate Galleries on One Page #85

jehand opened this issue Apr 11, 2023 · 0 comments

Comments

@jehand
Copy link

jehand commented Apr 11, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant