Good evening. There is a jquery function:

$(document).ready(function() { $('.popup-gallery').magnificPopup({ delegate: 'a', type: 'image', mainClass: 'mfp-img-mobile', gallery: { enabled: teByImgClick: true, rue, navigatpreload: [0,1] }, image: { tError: '<a href="%url%">The image #%curr%</a> could not be loaded.', } }); }); 

Is it possible to specify several classes in this section?

 $('.popup-gallery').magnificPopup({ 

    2 answers 2

    Are you interested in that?

     $('.popup-gallery, .popup-gallery-2, .popup-gallery-3') 
    • Thank you. - gm-111

    Better yet:

     var $popupGallery = $('.popup-gallery, .popup-gallery-2, .popup-gallery-3'); $popupGallery.magnificPopup({ /*...