Documentation

Selecting a theme for mobile users

Go to Dashboard > Pages and Themes. Notice the new "Mobile" link-- this is where you select the specific theme you'd like to display for mobile users. You'll see a list of all themes installed on your site. any of these can be displayed for mobile users. To select one to display for mobile browsers, select its radio checkbox and click Save.

How do I know it's working?

You'll need to visit your site from a mobile device, "fake" your browser's user agent string, or use an emulator (like that included in Apple's iOS SDK).

By default the included "Mobile Fone" theme is activated for mobile users. Here's what your site might look like:

Which user agents does it test for?

'iphone', 'android', 'webos', 'fennec', 'blackberry', 'mobile safari', 'windows ce'

See the version history for the latest info.

Inline application logic?

The theme switcher defines the constant: MOBILE_THEME_IS_ACTIVE so you can test within your page types and themes to conditionally display certain elements.

Example of using the constant:

if(defined('MOBILE_THEME_IS_ACTIVE')) {
    echo //some mobile code
}else{
    echo //some non-mobile code
}