If you need to disable FooBox only on mobile, you can add the following code snippet to your theme’s function.php:
function disable_foobox_on_mobile( $enabled ) {
if ( wp_is_mobile() ) {
return false;
}
return $enabled;
}
add_filter( 'foobox_enqueue_scripts', 'disable_foobox_on_mobile', 999 );<br>