I've started to build a WordPress theme using Bootstrap but cant get it to display correctly in older (6, 7 & 8) versions of IE.
I have stored the html5shiv and respond js files on the server and put the conditional after the CSS files but it still doesn't render correctly - containers are stretched out etc.
All CSS is currently hard-coded in the header so there are no @import problems.
My code looks like this -
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />
<title>
Test </title>
<link href="<?php bloginfo('template_url');?>/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
<?php wp_head(); ?>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="<?php bloginfo('template_url');?>/bootstrap/js/html5shiv.js"></script>
<script src="<?php bloginfo('template_url');?>/bootstrap/js/respond.js"></script>
<![endif]-->
</head>
I've searched the internet over and over but can't find an reason as to why the html5shiv and respond fix isn't working. Has anybody got any suggestions?
Thanks.