Title: Lightgallery
Last modified: April 14, 2018

---

# Lightgallery

 *  [oinker](https://wordpress.org/support/users/oinker/)
 * (@oinker)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/lightgallery/)
 * Hi,
 * is there a way to use this lightbox: [https://dzine.io/products/lightgallery-wp-plugin/](https://dzine.io/products/lightgallery-wp-plugin/)
 * After installing that plugin, it is not listed under “lightbox”.
 * Would be great. Thank you!

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

 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/lightgallery/#post-10186664)
 * 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](https://wordpress.org/support/users/dzineio/)
   for their comment
 *  Thread Starter [oinker](https://wordpress.org/support/users/oinker/)
 * (@oinker)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/lightgallery/#post-10186765)
 * Thanks for your reply. But I don’t know what to do to get it working 🙂
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/lightgallery/#post-10186794)
 * 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.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [bradvin](https://wordpress.org/support/users/bradvin/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/lightgallery/#post-10186794)
 * Status: not a support question