WordPress.org

Ready to get started?Download WordPress

Forums

IE7 Metatag not working in header.php (1 post)

  1. moonracers
    Member
    Posted 1 year ago #

    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?

    http://www.softwareworks-inc.com

    Best Regards,
    mr

Topic Closed

This topic has been closed to new replies.

About this Topic