Created
May 29, 2018 16:34
-
-
Save amostajo/f8f25d2c704f5b1709228d3be8fb18ea to your computer and use it in GitHub Desktop.
Post Gallery: Initialize custom lightbox.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { $(document).ready(function() { | |
//Initialize for every .post-gallery found. | |
$('.post-gallery').each(function() { | |
// Init lightGallery with thumbnail option set to true. | |
$(this).lightGallery({ | |
thumbnail:true | |
}); | |
}); | |
}) })(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment