Forums

Automatic theme selection - theme switcher plug-in (1 post)

  1. mogwai
    Member
    Posted 7 years ago #

    Hello there!
    I am using the theme switcher plug-in at my test-site <http://www.populoud.de/mark/wordpress/>
    The theme I prefer most (a modded framefake theme) does not like being browsed with IE. So i asked myself if it would be possible to use a browser detection script like this one:
    <?php
    if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE")) {
    echo '<link rel="stylesheet" type="text/css" href="/layout/css/common_ie.css" />';
    } else {
    echo '<link rel="stylesheet" type="text/css" href="/layout/css/common.css" />';
    }
    ?>

    to tell the theme switcher plug-in to select another theme which is ok for IE. This would be handy, because with Mac-IE the User does not see anything but the background picture of the framefake theme.

    WordPress 1.5
    Ryan Boren's theme switcher plug-in
    Modded Framefake theme (several versions just for testing)
    Kubrick

Topic Closed

This topic has been closed to new replies.

About this Topic