Is it possible to add/edit an option in an already running instance of the lightGallery script? I have this WordPress theme which loads an instance of lightGallery on galleries and I need to add/edit some of its options (for example: change the transition effect between images) without modifying the main theme files (on a child theme, for example).
This is the code found in the theme:
var container = $( '.gallery' );
var parseImage = container.data( 'images' );
if ( typeof $.fn.lightGallery != 'undefined' ) {
container.lightGallery({
dynamic : true,
dynamicEl : parseImage
});
}
Can this be done?
Thanks in advance