on September 24, 2009 by redox in Wordpress, Comments (0)

Sirve el theme por defecto de Wordpress a Internet Explorer 6

Si la iniciativa NOIE6Day no te convence, puedes optar por hacer que tu Wordpress muestre el theme por defecto (kubrick) a tus usuarios con Internet Explorer 6. Para ello, únicamente tendremos que añadir esto al fichero functions.php de nuestro theme.
add_filter('template', 'serve_default_to_iesix');
add_filter('option_template', 'serve_default_to_iesix');
add_filter('option_stylesheet', 'serve_default_to_iesix');
function serve_default_to_iesix($theme) {
 if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false)
    $theme = 'default';
 return $theme;
}
Desde este momento, tus usuario tendrán el theme por defecto activo cuando visiten tu blog.

Artículos relacionados

aNieto2k

No Comments

Leave a comment

XHTML: Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spanish flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagPortuguese flagEnglish flagGerman flagFrench flagJapanese flagArabic flagRussian flag