Display plugin fix for exported artisteer projects in wordpress


Author Message
innerchild

Posted: 12/12/2011
Quote message 

For anyone who is interested in this fix, see this page :

http://bbpress.org/forums/topic/heres-how-to-fix-internet-explorer-8-messing-up-your-design

What you need to do, to get this working as a plugin do the following :

1 create the php file
2 zip the php file
3 add the zip file in wordpress
4 activate it

This is the code to get it working :

<?php
/*
Plugin Name: ie8 explorer fix
*/

function fix_ie8() {if (strpos($_SERVER['HTTP_USER_AGENT'],"MSIE 8")) {header("X-UA-Compatible: IE=7");}}
add_action('bb_send_headers','fix_ie8'); // for bbPress
add_action('send_headers','fix_ie8'); // for WordPress

?>