Archived topic
Changing Compatibility to IE=9
6 replies · Started by Aaron Harms on April 17, 2019
There is some functionality of one of our websites that does not work within our organization because of the Compatibility Mode we are forced to use for some older web applications.
I am wondering if we can safely change this IE content code to "IE=9" (instead of edge)....
<meta http-equiv="X-UA-Compatible" content="IE=edge">
And if so, where should I add the code to overwrite the above code?
P.S. It is the Google Translator plugin which is not working for us within our organization, but it does appear to work everywhere else.
Thanks,
Aaron
As of right now, that line is in header.php: https://github.com/tomusborne/generatepress/blob/2.2.2/header.php
That means you would need to overwrite that entire file in your child theme, which isn't ideal.
Let me look at a solution for GP 2.3 that will make it easier to adjust. I'll get back to you :)
Thanks Tom! Any idea when 2.3 might be out?
Once GPP 1.8 is out, we'll be close to a 2.3 alpha. However, I'll be able to update you once we make the change so you can safely make it to your current installation without waiting.
Hi there,
We've just committed this change to 2.3: https://github.com/tomusborne/generatepress/commit/d87d759845107ee369f7a198111075e07017ad6d
You can make the change to your current install if you'd like to take advantage of the filter:
add_filter( 'wp_headers', function( $headers ) {
$headers['X-UA-Compatible'] = 'IE=9';
return $headers;
}, 20 );
Wonderful! Thanks so much Tom!
You're welcome! :)