Thank you for your business first of all and great question. It is possible to set the lightbox so it is not active on a particular page. What you’ll want to do is go to the Appearance section and select Edit. From the list of files on your right, choose ot-gallery.php and look for this spot:
function organizedthemes_load_fancybox() {
if( !is_admin()){
wp_enqueue_script('fancybox');
wp_enqueue_script('fancy');
}
}
add_action('wp_enqueue_scripts', 'organizedthemes_load_fancybox');
What you’ll want to do is change it to something like this:
function organizedthemes_load_fancybox() {
if( !is_admin() || !is_page( 'Gallery' ) ){
wp_enqueue_script('fancybox');
wp_enqueue_script('fancy');
}
}
add_action('wp_enqueue_scripts', 'organizedthemes_load_fancybox');
Which would disable the script on a page named Gallery. You’d need to replace Gallery
above with the name of the page where you don’t want the script loaded.
Once you save your changes that should take care of it for you.
If you run into any questions or trouble, let me know.
Thanks again,
Bill