IE conditional actions

Insert IE specific stylesheet for IE visitors only.

Place the code in your themes functions.php file. It will check if the visitor is using IE (any version) and enqueue a stylesheet if that’s the case.

Code Snippet:

<?php
global $is_IE;
if ($is_IE) {
	// Do stuff
}
?>

Posted in Conditional