I\'m trying to create a page with a few galleries using the Magnific-Popup jQuery plug-in. I different sections contained in div
s with separate ids and a .gal
From the documentation:
To have multiple galleries on a page, you need to create a new instance of Magnific Popup for each seperate gallery. For example
Javascript
$('.gallery').each(function() { // the containers for all your galleries $(this).magnificPopup({ delegate: 'a', // the selector for gallery item type: 'image', gallery: { enabled:true } }); });
Hope that helps!