• For the life of me I can’t get the <meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ /> meta tag to work for me. I’ve placed it in just about every location imaginable within my header.php file to no avail. My header/menu and jquery are missing for IE8 users. IE9 works fine.

    If I enter the following code into my header.php file my template works fine with IE8 but I see this line of code on my website. I’ve tried getting the syntax correct and placing the function into different tags but then it doesn’t work or solve my IE8 issue. It hides the code from the page but does nothing.

    I also tried adding this function to my functions.php but it renders this file unusable.

    function fix_ie8() {if (strpos($_SERVER['HTTP_USER_AGENT'],”MSIE 8″)) {header(“X-UA-Compatible: IE=7″);}} add_action(‘send_headers’,'fix_ie8′))();

    Any ideas of how to make this work?

    https://www.softwareworks-inc.com

    Best Regards,
    mr

  • The topic ‘IE7 Metatag not working in header.php’ is closed to new replies.