• I would like to have the lightbox on for some galleries and off for others.
    What is the best way to accomplish this?

    If I do not check the “Convert WordpPress Galleries” Checkbox on the Integration Tab, then it seems that your plugin adds a class=”no-lightbox” to each Gallery image link when the page is generated. But I do not see that I can use a class=”lightbox” at the Gallery level to over-ride that.
    I need to be able to turn lightboxing on and off at the Gallery level, not the individual image level. Is there a way to do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author arisoft

    (@arisoft)

    Hello

    Currently it is possible to disable the lightbox for particular galleries using custom javascript code. For this open “Advanced” tab on “ARI Fancy Lightbox -> Settings” page and populate “Custom JS code” parameter with the following code:

    $.each([15, 453], function(_, galleryId) { $('.galleryid-' + galleryId + ' A').addClass('no-lightbox'); });

    It will disable the lightbox for galleries with IDs equal to 15 and 453 (the same as post IDs).

    Thread Starter Jon

    (@omanhene)

    Thank you! I see that this does work. I appreciate the quick response.

    Unfortunately, I cannot use this solution with dynamically created galleries, as they all show galleryID=0.
    I am using categories and tags in my media library, and so my gallery shortcode looks like this {gallery media_category=”12″} and the unique GalleryID’s are only assigned for traditional galleries that call images by specific IDS. For dynamic galleries it is always GalleryID=0

    I tried setting GalleryID like this, but it did not work {gallery media_category=”12″ GalleryID=”123″}

    I will take a different tack on this problem. Thank you anyway for your quick reply, it is much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disabling Lightbox for just one gallery’ is closed to new replies.