diff --git a/theme/functions.php b/theme/functions.php index 8e863c5..674eba3 100644 --- a/theme/functions.php +++ b/theme/functions.php @@ -142,3 +142,11 @@ function windycoys_get_read_time($words) { $mins = ceil($words / $wpm); return $mins; } + +function windycoys_is_ie() { + $ua = htmlentities($_SERVER["HTTP_USER_AGENT"], ENT_QUOTES, "UTF-8"); + if (preg_match("~MSIE|Internet Explorer~i", $ua) || (strpos($ua, "Trident/7.0") !== false && strpos($ua, "rv:11.0") !== false)) { + return true; + } + return false; +} diff --git a/theme/header.php b/theme/header.php index 9cf624a..e04a519 100644 --- a/theme/header.php +++ b/theme/header.php @@ -27,5 +27,8 @@ $manifest = get_template_directory_uri() . '/manifest.json'; + + +