How can I restrict the portfolio lightbox gallery to only show the filtered items? If a user chooses to use the filter option, it makes sense that the ensuing lightbox that appears only shows those filtered items.
I tried to add this to the magnetic defaults but it did not work:
delegate: ‘li:not(.isotope-hidden).item a’,
Thank you in advance for any help with this!
Hi mmcgrat1!
Thank you for using Enfold.
Unfortunately, it’s not possible to filter the lightbox gallery in response to the category sort function. You may found a workaround but, I’m sorry to say, it’s not something we can provide here. Please hire a freelance developer or configure the magnific popup plugin. Refer to this link: http://dimsemenov.com/plugins/magnific-popup/
Regards,
Ismael
Hi Ismael,
We modified the code a little and rebuilt the gallery using portfolio items that have defined custom links, linking to the image in the gallery….this is working great and once filtered, you can only click through the images in that portfolio category.
However, the weird thing is that when the gallery first loads, and no sorting options have been clicked, the magnific pop-up looks correct with the avian/enfold theme css attached. But, when a sorting option is clicked, that css disappears and it defaults to the magnific css. Is there a reason the avian classes would be removed after sorting?