Slider Revolution WP
09.27.2016
Once the lightbox is opened, if you want the lightbox to cycle through all items in all galleries, skip this step.
Otherwise, add the following code to the grid’s “API/JavaScript” section, and the lightbox will only show one gallery at a time.
1 2 3 4 5 6 7 8 |
jQuery('.esgbox').on('click', function() { var itm = jQuery(this).closest('li'); itm.find('.esgbox').attr('rel', 'esg-' + itm.index()); }); |