Display a different theme on IE6 - Wordpress


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.