Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bradvin

    (@bradvin)

    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 🙂

    Plugin Author bradvin

    (@bradvin)

    oinker – there is nothing you can do at the moment until the developer of lightgallery responds with a suggestion.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Lightgallery’ is closed to new replies.