Laut der functions.php bei dem Style Visitered Little sollte man doch, wenn man den Internet Explorer benutzt, automatisch zu einem anderen Style weitergeleitet werden
Auszug functions.php
PHP
<?php
/*
File Name: Wordpress Theme Toolkit
Version: 1.0
Author: Ozh
Author URI: http://planetOzh.com/
*/
/************************************************************************************
* THEME USERS : don't touch anything !! Or don't ask the theme author for support :)
************************************************************************************/
include(dirname(__FILE__).'/themetoolkit.php');
themetoolkit(
'visteredLittle',
array(
'ieblurb' => 'IE6 Failure Explanation {textarea|6|50} ## If you dont like the generic text that is displayed when viewing the site in ie6 or below, please replace it with your own.',
'skin' => 'Skin {ocadia|Ocadia|Default|shiny|Shiny|citrus|Citrus} ## Select a skin/theme to change the design of your page.',
),
__FILE__
);
/************************************************************************************
* THEME AUTHOR : Congratulations ! The hard work is all done now :)
*
* From now on, you can create functions for your theme that will use the array
* of variables $mytheme->option. For example there will be now a variable
* $mytheme->option['your_age'] with value as set by theme end-user in the admin menu.
************************************************************************************/
/***************************************
* Additionnal Features and Functions
*
* Create your own functions using the array
* of user defined variables $mytheme->option.
*
**************************************/
function ieblurb() {
global $visteredLittle;
if ($visteredLittle->option['ieblurb']) { print $visteredLittle->option['ieblurb']; }
else { print "<font size=5> Fehler <br> </font> Wechsel bitte deinen Browser oder das <a href=index.php?wptheme=Ocadia> Theme </a>"; }
}
function pickaskin() {
global $visteredLittle;
if ($visteredLittle->option['skin']) {
print "@import url(";
bloginfo('template_directory');
print "/";
print $visteredLittle->option['skin'];
print ".css);\n";
}
else {
print "@import url(";
bloginfo('template_directory');
print "/default.css);\n";
}
}
function buildWallpaperArray() {
[...]
?>
Alles anzeigen
Wieso geht das nicht?
PS: Mein Alternaitv-Theme ist Ocadia