Skip to content

Instantly share code, notes, and snippets.

@mjepson
Created January 24, 2013 08:20
Show Gist options
  • Save mjepson/4618676 to your computer and use it in GitHub Desktop.
Save mjepson/4618676 to your computer and use it in GitHub Desktop.
Canvas disable IE8 responsive
add_action( 'init', 'custom_remove_responsive_ie8', 9 );
function custom_remove_responsive_ie8() {
if ( is_admin() ) return;
global $is_IE;
if ($is_IE) {
$browser = $_SERVER['HTTP_USER_AGENT'];
$browser = substr( "$browser", 25, 8);
if ($browser == "MSIE 8.0" ) {
add_action( 'init', 'woo_load_responsive_design_removal', 10 );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment