Support » Themes and Templates » Force a theme based on browser type

Force a theme based on browser type

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    Thank you. A version of this will work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Force a theme based on browser type’ is closed to new replies.