Question copied from another user who asked this 7 months ago on github as i have the same problem and no solution found there as well GitHub Question Link.
I have used Magnific-Popup in conjunction with isotope in a wordpress projects to make a gallery with slideshow and filters. When I filter the items with isotope, it adds the class isotope-hidden
. But the magnific-popup disregards that class and displays all items also when in slideshow mode.
My popup items are in a div with class .portfolio-item
I am using the following code for magnific popup
$('.image-link').magnificPopup({
type: 'image',
image: {
titleSrc: 'alt',
verticalFit: true
},
gallery:{
enabled:true
}
});
try targeting the container of the isotope elements in the magnificPopup initialization, something like this:
it this doesn’t work what if you use a built in ready solution for this, for example this one: http://codecanyon.net/item/media-boxes-responsive-jquery-grid/5683020 it uses isotopeV2 and Magnific Popup already
I also had the same problem. Reading some of the suggestions here and on GitHub has lead me to try this:
In my context, it worked. Current working experiment is here.