arnabwahid / wordpress-bootstrap

Bootstrap in WordPress theme form - Bootstrap 3.3.1
1.49k stars 555 forks source link

IE 8 Displays Mobile Version #194

Closed rustanacexd closed 10 years ago

rustanacexd commented 10 years ago

No IE8 Support? but I notice we have this in the header

<!-- media-queries.js (fallback) -->
    <!--[if lt IE 9]>
        <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>           
    <![endif]-->

    <!-- html5.js -->
    <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

But It doesn't work.

alfakappa commented 10 years ago

Same problem here... any help?

chmchm-zz commented 10 years ago

Having an awful time with IE and this theme. Any suggestions would be great.

aibrean commented 10 years ago

You also need Respond.js.

http://getbootstrap.com/getting-started/#support-ie8-respondjs

Responsive design and IE8 just doesn't really blend. I haven't found a method that works.

chmchm-zz commented 10 years ago

I gave up on IE8, but I was having trouble with IE9. Had to run Bless on my CSS to make it work. Don't know what rock I have been hiding under, but I didn't realize IE was so persnickety with file size. I was using respond, also.

StefNet commented 10 years ago

This has been driving me mad as well but the solution was really very simple. The css for this theme is included in the functions and will be loaded with the wp_head. Because of this you have to make sure that respond.js (or css3 mediaqueries) is included AFTER the wp_head. Otherwise there is no css for respond.js to process.

By default the theme includes it before the wp_head. After moving it it works perfectly.

rustanacexd commented 10 years ago

Yeah. forgot to reply on this one guys sorry. after I have moved the respond.js or whatsoever on the footer it already works. cheers

alfakappa commented 10 years ago

Shouldn't this be adopted within the theme? Somebody can make a pull request?

btw; well done @StefNet :+1: :)

aibrean commented 10 years ago

@alfakappa @rustanacexd @chmchm I did a pull request. Respond worked fine when I had it declared in the head, just as last.