WordPress.org

Support

Support » Plugins and Hacks » WP Supersized » [Resolved] [Plugin: WP Supersized] How can I turn off the script on my mobile theme?

[Resolved] [Plugin: WP Supersized] How can I turn off the script on my mobile theme?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Okay, I added to my mobile themes function file these lines:

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

    and everything is solved.
    If someone else needs.

    This code work smooth for me, after some small changes:

    if (!is_admin()) {
    	function site_init() {
    		wp_deregister_script( 'WPSupersized_standard' );
    		wp_deregister_script( 'WPSupersized_theme_js' );
    		wp_deregister_script( 'WPSupersized_core' );
    		}
    	add_action('init', 'site_init');
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: WP Supersized] How can I turn off the script on my mobile theme?’ is closed to new replies.
Skip to toolbar