Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Compatibility view in IE (don't judge me)

Started by Muut Archive 10 years ago · 4 replies · 316 views
10 years ago

Hi All, I've used Grav as a landing page for a client and a lot of their client base use IE. His office has compatibility view set as default (Don't ask me why!) and the site is not displaying properly.

I've explained the whole developing for modern browsers etc etc but he's still asking why many modern websites display fine in compatibility view and Grav does now. I've even noticed the main Grav website is out of whack in compatibility view.

Given that many modern websites view fine in IE and IE compatibility view, but Grav does not... how can I get around this with this particular client?

10 years ago

It all depends on the theme used, as it completely defines the HTML generated. I am not familiar with the topic, but you might start from inspecting your theme output.

Grav itself does not output any HTML, but leaves the job to the theme.

10 years ago

This I understand but it seems that most themes within the downloads area don't display in IE for compatibility view, even the Grav built ones.

For example if you look at these themes in compatibility view, they're all displaying incorrectly.

One page demo site
Twenty | Twenty
RTFM template
Boxify

Plus many others that I've checked.

Trust me, I'm all for modern browsers and this is the first time I've come across this from a client but unfortunately some large organisation and government departments still run old versions of IE and also run in compatibility mode.

Would be interested to hear form one of the Grav team to see if there's a work-around or something that could be tweaked to alleviate this.

10 years ago

As an open source project, we simply dont have the resources to support old versions of IE in our themes. Most of our themes are direct ports of other free themes, and as such, we port them as-they-are. With whatever support they offer.

If you want to develop a theme with support for older IE versions and even gasp, compatibility mode, you are totally able to do that with Grav. You will just need to do it yourself :/

10 years ago

Not that I expect too many people will need this fix but I managed to solve it by adding

TXT
<meta http-equiv="X-UA-Compatible" content="IE=edge">

to the user/yourtheme/templates/partials/base.html.twig file and now it's rendering nicely in IE compatibility mode.

Although it's worth noting that hmtl 5 videos will not render in this view.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1359 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2955 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago