Disable FooBox on Mobile

FooBox Documentation

Disable FooBox on Mobile

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>

This is not recommended as FooBox is built to work on mobile devices!