[Resolved] Changing Compatibility to IE=9

Home Forums Support [Resolved] Changing Compatibility to IE=9

Home Forums Support Changing Compatibility to IE=9

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #871954
    Aaron Harms

    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

    #872050
    Tom
    Lead Developer
    Lead Developer

    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 ๐Ÿ™‚

    #872058
    Aaron Harms

    Thanks Tom! Any idea when 2.3 might be out?

    #872750
    Tom
    Lead Developer
    Lead Developer

    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.

    #895682
    Tom
    Lead Developer
    Lead Developer

    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 );
    #895694
    Aaron Harms

    Wonderful! Thanks so much Tom!

    #895723
    Tom
    Lead Developer
    Lead Developer

    You’re welcome! ๐Ÿ™‚

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.