Layout fix for IEx browsers
This commit is contained in:
@@ -142,3 +142,11 @@ function windycoys_get_read_time($words) {
|
|||||||
$mins = ceil($words / $wpm);
|
$mins = ceil($words / $wpm);
|
||||||
return $mins;
|
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;
|
||||||
|
}
|
||||||
|
|||||||
@@ -27,5 +27,8 @@ $manifest = get_template_directory_uri() . '/manifest.json';
|
|||||||
<link rel="manifest" href="<?php echo $manifest ?>">
|
<link rel="manifest" href="<?php echo $manifest ?>">
|
||||||
<link rel="stylesheet" href="<?php echo $css_url ?>">
|
<link rel="stylesheet" href="<?php echo $css_url ?>">
|
||||||
<link href="//fonts.googleapis.com/css?family=Open+Sans|Raleway:700" rel="stylesheet">
|
<link href="//fonts.googleapis.com/css?family=Open+Sans|Raleway:700" rel="stylesheet">
|
||||||
|
<?php if (windycoys_is_ie()) : ?>
|
||||||
|
<style type="text/css">.is-fixed .logo,.is-fixed .metadata{position: static;}</style>
|
||||||
|
<?php endif; ?>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user