WordPress.org

Ready to get started?Download WordPress

Forums

WP Supersized
Disable on mobiles and tablets (3 posts)

  1. gemba
    Member
    Posted 9 months ago #

    Does anyone know how to disable this plugin for mobiles and tablets?

    https://wordpress.org/plugins/wp-supersized/

  2. maxbortone
    Member
    Posted 8 months ago #

    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.

  3. maxbortone
    Member
    Posted 8 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.