Support » Plugins » [Plugin: Fancybox for WordPress] Multiple Galleries on One Page

  • Hi,

    When I add multiple NextGen galleries to a page and I view them via Fancybox, they don’t end after each gallery. The user is able to scroll through all the NextGen Gallery images on that page as if they were all part of the same gallery.

    Does anyone know how this can be changed to show only per gallery?

    Thank you,


Viewing 1 replies (of 1 total)
  • lxg


    I had the same issue today, I solved it like this: On the plugin settings page, go to the “Galleries” tab and select “Use a custom expression to apply FancyBox”. Then paste the following code into the textarea:

    var gCount = 0;
    jQuery('').each(function(k, $gallery){
        jQuery(thumbnails).each(function(k2, thumb){
            var $thumb = jQuery(thumb);
            if ($thumb.closest($gallery).length)

    NB: There are dozens of forum post related to this issue, however they relate to different implementations of Fancybox plugins for WP. This fix refers only to the “Fancybox for WordPress” plugin found at

    Sorry for digging up a 7 months old post, but this issue seems to bother quite a lot of people, so I thought a fix might be helpful.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Fancybox for WordPress] Multiple Galleries on One Page’ is closed to new replies.