Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Force IE to render a site in the latest version of its rendering engine. Useful to add to functions.php for WordPress themes.
if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ) !== false ) )
header('X-UA-Compatible: IE=edge,chrome=1');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment