New LiveWire Site
Posted on Wednesday, August 17th, 2005 at 22:04.
I launched the new LiveWire site today.
Internet Explorer provides as much support for CSS as a Wonderbra on a 90-year-old woman. To compensate, I created two WordPress themes that looked exactly alike: one made with CSS and one made with tables. The CSS layout is the default theme. At the top of the index.php CSS theme file, I included browser detection code. Users visiting with Internet Explorer are redirected to the table-based theme. The ThemeSwitcher WordPress plug-in allows me to switch the theme just for the person (and not everyone else) through a URI. Here is the code I used:
< ?php if (eregi("MSIE",$HTTP_USER_AGENT)) {
header("Location: http://livewireradio.us/index.php?wptheme=LiveWire+Radioactive-IE ");
} ?>
The ThemeSwitcher plug-in is also nice for testing WordPress themes that you are developing without interrupting access to your site.
