• Hello,

    I am working on a wordpress website in local.

    I am using a lot of css3 attributes, and the rendering on IE9 is a mess.

    I can’t correct this with a special css stylesheet for IE, so i’m juste thinking about making a custom theme for IE.

    Is it possible to detect and swap the theme when a user is using IE9 or older ?

    I can’t find a lot of documentation about that, sorry if the answer is already in this forum

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I misread.

    Thread Starter kopax

    (@kopax)

    Thanks a lot for your answer, but has I said,

    I can’t correct this with a special css stylesheet for IE

    A custom css for IE is not enough.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You can include another stylesheet for certain Internet Explorer browsers using HTML or JavaScript.

    Look at this example for HTML conditional statements
    https://www.quirksmode.org/css/condcom.html

    Instead of stylesheets, use your HTML.
    E.g

    <!--[if IE 9]>
    <a href="#" title="Seen in IE9 only">...</a>
    <![endif]-->

    Thread Starter kopax

    (@kopax)

    Thanks for your answer again,

    For now this is the only solution I have in mind, but it doesn’t improve code readability.

    I’m really looking for a way to change theme when I detecte another browser.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘IF IE statement changes to different theme’ is closed to new replies.