Little bit new here but I searched around for this specifically and couldn't find an answer.
I'm currently trying to get multiple galleries on a single page with the magnificPopUp plugin, and I know this has been discussed (Multiple Galleries with Magnific Popup)
$('.gallery').each(function() { // the containers for all your galleries
$(this).magnificPopup({
delegate: 'a', // the selector for gallery item
type: 'image',
gallery: {
enabled:true
}
});
});
This might seem like a dumb question, but where do I place that JavaScript code? in the magnific-popup.js file? Or do I make a new one and call it? I'm relatively new with JS and I'm working on it, but I've tried placing it in different locations and get a JavaScript error. Any ideas?