Skip to content

Snippet: Load Lightbox Scripts Site-Wide

Important: Since Total 4.9.3 there is now a setting in the Customizer to enable the scripts globally so you don't need any custom code!

add_filter( 'wpex_load_ilightbox_globally', '__return_true' );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top