Reply To: Messed Up Layout in IE?

Home Forums GovIntranetters Messed Up Layout in IE? Reply To: Messed Up Layout in IE?

#2772
aaron robb
Participant

Ok, so I got the compatibility issue fixed by adding the code below to the wordpress mu-plugins plugin file that we created for this theme. The “header(‘X-UA-Compatible: IE=edge’);” code for some reason wasn’t showing up for me, even in a few other variations I tried, so this is a bit of a offshoot of it.

Adding it to a must-use plugin will eliminate the problem of it being overwritten with a theme update.

The 0 at the end of the action forces this to load at the top of the header file (or close to the top).

//Remove Compability Error from IE
add_action('wp_head', 'compat_remove_wp_head', 0);
function compat_remove_wp_head(){
 echo "<meta http-equiv='X-UA-Compatible' content='IE=edge'>";
}

Got confirmation from the admin within the network that this makes the site load properly!
So thank you for the help to get this started!