Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter marty1976

    (@marty1976)

    I’m using Envrita Gallery Lite 1.0.9 btw…

    Thread Starter marty1976

    (@marty1976)

    – bump –

    Does anyone have any idea as to why it’s impossible to disable the lightbox?

    Plugin Author Thomas Griffin

    (@griffinjt)

    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.