IE conditional actions

Place the following in your themes functions.php file. It will check if the visiotr is using IE (any version) and enqueue a stylesheet if that’s the case. Adding this PHP code to your wordpress theme will allow you to display content for visitors using Internet Explorer.




global $is_IE;
if ($is_IE) {
// IE only content

Leave a comment