From fc365605d5070d9eb71cf3a1d2e1bf449e0b3d35 Mon Sep 17 00:00:00 2001 From: Dan Head Date: Mon, 21 Jan 2019 20:55:30 +0000 Subject: [PATCH] Layout fix for IEx browsers --- theme/functions.php | 8 ++++++++ theme/header.php | 3 +++ 2 files changed, 11 insertions(+) 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'; + + +