Posted By

crispunk on 10/27/10


Tagged

wordpress ie6


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

crispunk


Display a different theme on IE6 - Wordpress


 / Published in: PHP
 

URL: http://www.plan-zero.org

  1. //Set Default Template on IE 6
  2.  
  3. add_filter('template', 'serve_default_to_iesix');
  4. add_filter('option_template', 'serve_default_to_iesix');
  5. add_filter('option_stylesheet', 'serve_default_to_iesix');
  6. function serve_default_to_iesix($theme) {
  7. if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false)
  8. $theme = 'default';
  9. return $theme;
  10. }

Report this snippet  

You need to login to post a comment.