Skip to content

Instantly share code, notes, and snippets.

Created January 23, 2013 08:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4603012 to your computer and use it in GitHub Desktop.
Save anonymous/4603012 to your computer and use it in GitHub Desktop.
add_action( 'init', 'woo_remove_responsive_ie8', 9 );
function woo_remove_responsive_ie8() {
if ( is_admin() || !is_child_theme() ) 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