Hi there,
I’m trying to get my site looking like a desktop website in Internet Explorer 8, because right now it looks like a mobile screen because of the mobile-first approach.
According to the Bootstrap 3 documentation, adding respond.js enables the use of responsive media queries: http://getbootstrap.com/getting-started/#browsers
When testing the giving examples in IE8, it works perfectly. Now I’m trying to implement this in my roots theme, so I add this conditional to my head.php after wp_head:
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/assets/js/vendor/respond.min.js"></script>
<![endif]-->
And that works too, because all of my media queries in my app.less file are working correctly now in IE8.
However (and this is kind of important), because of this respond.js limitation:
Respond.js doesn’t parse CSS referenced via @import, nor does it work with media queries within style elements, as those styles can’t be re-requested for parsing.
None of the bootstrap media queries are working with respond because of the @import in app.less:
@import "bootstrap/bootstrap.less";
I tested it, and copied all of the lines from bootstrap/grid.less directly into app.less and then respond.js does work like it should!
Is there a workaround for this problem? I can’t be the only one testing Roots 6.5.1 in IE8?
Thanks a lot!
Cheers, Toine