WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Fix for Infinity WordPress theme featured images not diplaying IE8 (2 posts)

  1. joshgarrod
    Member
    Posted 1 year ago #

    Hi All,

    I had a problem with the Infinity theme not showing images in IE8 - I found the fix and thought I would share it here (theme as on my site here http://www.iphoneprojector.net )

    In the theme editor, edit the theme-functions.php page and add the following lines of code after the first two lines:

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

    Hope this helps someone as it did me!

  2. BLuu123
    Member
    Posted 1 year ago #

    Thanks for the code, i'm having problems inputing it.

    When I put in functions.php file into my child theme the whole page just goes blank. Even if I input the default functions.php file without any modifications.

    How do I fix this?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.