Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve found a solution: I’ve installed mobble as a plugin in my theme, then added this code

    function kivangi_deregister_supersized() {
        wp_deregister_script( 'WPSupersized_standard' );
        wp_deregister_script( 'WPSupersized_theme_js' );
        wp_deregister_script( 'WPSupersized_core' );
    }

    to my custom functions and this

    if (function_exists('is_mobile')) {
        if (is_mobile()) {
          kivangi_deregister_supersized();
        }
      }

    in my script.php file, where I register and enqueue all javascripts and stylesheets.

    Also I suggest removing the theme stylesheets, just add this

    wp_deregister_style('supersized');
     wp_deregister_style('supersized_core');
     wp_deregister_style('supersized_flickr');
     wp_deregister_style('supersized_theme_css');

    to your custom function.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable on mobiles and tablets’ is closed to new replies.