I tried both of these codes in my functions file and neither worked.
The one had no affect at all on my home page.
function df_disable_galleries_on_specific_pages($args) {
// 12 is the page ID you'd like lighbox galleries to be disabled
if (is_page(461)) {
$args['activeGalleries'] = false;
}
return $args;
}
add_filter('rl_lightbox_args', 'df_disable_galleries_on_specific_pages');
And this just made the images open to full size in the same tab.
function custom_rl_lightbox_args( $args ) {
if ( is_home() || is_front_page() ) {
$args['script'] = '';
}
return $args;
}
add_filter( 'rl_lightbox_args', 'custom_rl_lightbox_args' );