Overriding lightbox2 options in a template
Design and Skin Customization
I'm trying to show long and tall, scrollable images in lightbox2. It defaults to images resized to fit the screen.
Lightbox2 documentation says that you should be able to alter that by changing the script options like this:
<script>
lightbox.option({
'fitImagesInViewport': false
})
</script>
http://www.lokeshdhakar.com/projects/lightbox2/
I can't get that to work either with the jamroom version (v2.7.1) or the current version (v2.9.0) of lightbox2.
If I use the github unminified v2.9.0 rather than the jamroom minified v2.7.1, add the
if($("#lightbox").length == 0) { ... } lines, and change the defaults in the script it works how I want, but I'd like to just change the options in the template.
Any idea how I can do that?
Thanks
updated by @ultrajam: 05/31/17 09:58:24AM