Title: Disable Lightbox: Error
Last modified: August 21, 2016

---

# Disable Lightbox: Error

 *  [marty1976](https://wordpress.org/support/users/marty1976/)
 * (@marty1976)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/disable-lightbox-error/)
 * I added the code mentioned here:
    [http://wordpress.org/support/topic/disable-lightbox-2?replies=5](http://wordpress.org/support/topic/disable-lightbox-2?replies=5)
 * to my theme’s functions.php, but I get the same error webdevmattcrom also got.
   
   Maybe this does no longer work in 3.9?
 * [https://wordpress.org/plugins/envira-gallery-lite/](https://wordpress.org/plugins/envira-gallery-lite/)

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

 *  Thread Starter [marty1976](https://wordpress.org/support/users/marty1976/)
 * (@marty1976)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/disable-lightbox-error/#post-4856661)
 * I’m using Envrita Gallery Lite 1.0.9 btw…
 *  Thread Starter [marty1976](https://wordpress.org/support/users/marty1976/)
 * (@marty1976)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/disable-lightbox-error/#post-4856935)
 * – bump –
 * Does anyone have any idea as to why it’s impossible to disable the lightbox?
 *  [Thomas Griffin](https://wordpress.org/support/users/griffinjt/)
 * (@griffinjt)
 * [12 years ago](https://wordpress.org/support/topic/disable-lightbox-error/#post-4856942)
 * You can do it by adding this to your theme’s functions.php file:
 *     ```
       add_action( 'envira_gallery_before_output', 'tgm_envira_disable_lightbox_lite' );
       function tgm_envira_disable_lightbox_lite() {
   
           if ( class_exists( 'Envira_Gallery_Lite' ) ) {
               remove_action( 'wp_footer', array( Envira_Gallery_Shortcode_Lite::get_instance(), 'gallery_init' ), 1000 );
           }
   
       }
       ```
   
 * However, this will also disable the Isotope script as well since they are initialized
   together. This should probably be split up so that you can disable one without
   affecting the other.

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

The topic ‘Disable Lightbox: Error’ is closed to new replies.

 * ![](https://ps.w.org/envira-gallery-lite/assets/icon-256x256.png?rev=2022837)
 * [Envira Gallery - Image Photo Gallery, Albums, Video Gallery, Slideshows & More](https://wordpress.org/plugins/envira-gallery-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/envira-gallery-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/envira-gallery-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/envira-gallery-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/envira-gallery-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/envira-gallery-lite/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Thomas Griffin](https://wordpress.org/support/users/griffinjt/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/disable-lightbox-error/#post-4856942)
 * Status: not resolved