Add IE8 support to the WordPress Underscores _s theme


Selection_003_0The developers of the underscores starter theme for WordPress are fairly adamant that the the theme supports only Internet Explorer version 9 and above. Unfortunately, there are still a lot of Windows XP users out there who cannot go beyond IE8. While we can’t provide a lot of the cool features for Internet Explorer 8, we can at least make sure that the basic site lays out in a readable manner. To accomplish this, it’s necessary to add the following content to the file header.php

<!--[if lt IE 9]>>
 var e = ("abbr,article,aside,audio,canvas,datalist,details," +
 "figure,footer,header,hgroup,mark,menu,meter,nav,output," +
 for (var i = 0; i < e.length; i++) {

I typically add this right before the line with

<?php wp_head(); ?>

2 Replies to “Add IE8 support to the WordPress Underscores _s theme”

  1. I am so glad I found this code snippet! Totally solved my problem! The biggest issue was getting the navigation menu to display properly and I had been looking all over for a solution. Much thanks!

Comments are closed.