hi there
I had a look at that WP plugin, and it only initializes their lightbox to containers with the following class lightgallery-default with the following line :
printf( "<script> jQuery( document ).ready( function( $ ) { $( '.lightgallery-default' ).lightGallery( %s ); }); </script>", ( count( $DefaultOptions ) ? 'LightGallery.Options' : '' ) );
The plugin will need to be changed to utilize a filter so that it can take other class names (in your case “foogallery” would work). Then you could add a small code snippet to your functions.php to hook into the filter.
including the developer @dzineio for their comment
Thread Starter
oinker
(@oinker)
Thanks for your reply. But I don’t know what to do to get it working 🙂
oinker – there is nothing you can do at the moment until the developer of lightgallery responds with a suggestion.