Force a theme based on browser type (3 posts)

  1. jdcfsu
    Posted 8 years ago #

    Is there a way to determine a site visitors browser type and then based on the determination, force them to view a certain theme? I am working on a new theme and, because of IE6s lame handling of standards, doesn't output correctly in IE6. IE6 amounts for about 20% of my user base so recoding the site is almost not worth it. I'd like to determine who is using IE6 and below and force them to my current theme (which works) and just add a note about what they are missing. Is this possible? Thanks.

  2. Alex Cragg
    Posted 8 years ago #

    you can tell IE to display different style sheets, so in your header put something like

    <!--[if IE]>
    <style type="text/css">
    @import "http://www.mydomain.com/wp-content/themes/default/styleIE.css";

    the if IE can be changed to specific versions, and less than and greater than statements.

    If different css coding is all that is needed to display the site correctly in IE(it is on my site), then this will work, as for whole themes i dont know

  3. jdcfsu
    Posted 8 years ago #

    Thank you. A version of this will work.

Topic Closed

This topic has been closed to new replies.

About this Topic