Extend Default Lightbox Settings
From your grid’s “Lightbox” tab, you’ll find all of the built-in lightbox options that can be adjusted. Here you’ll find options such as “padding”, “navigation”, etc. But if you’d like to declare even more settings, this can be done by extending the default settings Object with jQuery.
In this example, we’ll set a default width and height for YouTube videos that are loaded into the lightbox, and also lock the aspect ratio to these size settings.
- Quick Tip:
Want to prevent the page from scrolling to the top when the lightbox opens? Use the following override:
jQuery.esgbox.helpers.overlay.defaults.locked = false;