Slider Revolution WP
09.27.2016
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.
1 2 3 4 5 6 7 8 9 |
jQuery.extend(jQuery.esgbox.defaults, { width : 1280, height : 720, aspectRatio : true }); |
1 2 3 |
jQuery.esgbox.helpers.overlay.defaults.locked = false; |