Skip to content Skip to main menu Skip to utility menu

Reply To: Messed Up Layout in IE?

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

#2766

Stuart Brameld
Participant

I think we may have had the same problem, I spent many hours trying to fix this! Try editing your header.php as follows:

“The following customisation has been made to the header.php file in order to force IE to use a modern rendering engine, to ensure the site works correctly in modern version of Internet Explorer when ‘display compatibility mode for Intranet sites’ is selected.

// deal with IE display all sites in compatibility mode setting
header(‘X-UA-Compatible: IE=edge’);”

note: this files gets overwritten with theme updates, so if it works, you’ll need to add back after an update, or create a child theme or plugin.