IE7 compatible twentyeleven

First of all you need to know that twenty eleven theme is in HTML5 and IE6, IE7 doesn’t supports HTML5 (http://www.quirksmode.org/dom/html5.html) Secondly if you are having a menu problem in IE 7, then there is a fix available which I found on some website #branding #searchform { display: none; position: absolute; right: 7.6%; text-align: right; … Read more

Internet Explorer cannot display the webpage

The problem doesn’t actually occur with IE only, it only breaks page in IE. Your pages have circular 301 redirect between shortlink and permalink URLs — http://kyl.fi/ajankohtaista/ sends browser to http://kyl.fi/?p=16, which sends browser to ttp://kyl.fi/ajankohtaista/ and the circle have closed. Other browsers just decide to ignore this, ditch stupid redirect and show page anyway. … Read more

Conditional Redirect

If you want to detect only IE specific browsers, then following code help you. You need to replace the comments with the redirection code function browser_detection_redirect(){ preg_match(‘/MSIE (.*?);/’, $_SERVER[‘HTTP_USER_AGENT’], $matches); if (count($matches)>1){ //Then we’re using IE $version = $matches[1]; switch(true){ case ($version<=8): //IE 8 or under! break; case ($version==9): //IE9! break; default: //You get the … Read more

WP user agent returns random variables

You can examine wp-includes/vars.php for specific logic which implements sniffing for these globals in WordPress. In a nutshell the checks are very basic, especially considering user agent sniffing is inherently a mess. If you need a more reliable implementation you would have to get one elsewhere (or code it yourself). That or use different technique … Read more

Internet Explorer ignore my css

This is not a WordPress question but a general HTML / CSS question, as such you will likely get better answers elsewhere (StackOverflow). If you add this to your meta tags inside the head tag: <meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ /> This will render the page like IE7. However I don’t recommend this; if you are developing … Read more

Cannot apply custom css to IE in the theme

Looks like TwentyFourteen includes the ie.css stylesheet within a ‘less than IE 9‘ conditional tag, which would explain why it’s not working for IE11. <!–[if lt IE 9]> <link rel=”stylesheet” id=’twentyfourteen-ie-css’ href=”http://localhost/wordpress_answers/wp-content/themes/twentyfourteen/css/ie.css” type=”text/css” media=”all” /> <![endif]–> Sounds like you’ll want to enqueue your own IE specific stylesheet. This is probably done cleanest from within a … Read more