This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Xili-theme select


Xili-theme select is an automatic selector of theme according a series of defined rules: one for current browsers and anothers for (each) mobile browsers (iPhone, iPad, and more).

The plugin xili-theme select don’t content itself themes. The available themes remain in Themes folder and are selected between the current browser and the rulers defined by webmaster. Webmaster is totally free to define (the look of) the theme on each side (desktop or other). There is no automatic look transformation. Each available theme can be responsive or not. Plugin is compatible with child themes.

Prerequisites : themes must be well developped according current WP core rules like well done in bundled themes.

By default, Xili-theme select is provided with a small series of default rules for iPhone, iPad, and mobile based Chrome browsers. With a filter, it will be possible to define your own rules

If the themes are “international”, xili-theme select don’t interfere and so is full compatible with xili-language.

This version 2.0 includes latest famous free library/class from Anthony Hand : Github of mobilesp.


  • readme rewritting
  • other new rules (more flexible, new filter for theme developer/webmaster)


it is a major update, you need to renew Settings via Dashboard Menu Settings/xilitheme select.


Caution: – Before use xili-theme select: uninstall plugins like ‘any-mobile-theme-switcher’, ‘Device Theme Switcher’, ‘iwphone’ or ‘WordPress PDA & iPhone’ which do theme’s redirections as here.

Note about theme with template_page:
Both themes (the current and the one for iphone / ipodtouch) must contain the same template (name) – the contents can differ obviously –
A good architecture : multiple child themes with same parent!

Check out the screenshots to see it in action.

More infos

= soon more infos =

link to display current theme even in mobile

If $wp_ismobile->cookienable is set to 1, the theme can include a tag to refresh theme as viewing on a desktop browser even if on mobile. See tag example in php code.

[xili-theme-link] shortcode is also available and can be inserted everywhere (the link built detects if current or not current theme active).<h3>how to refresh xilitheme cookie</h3>

use param : ?xilitheme=reset at end of URI


  • the admin settings UI


  1. Upload the folder containing xilithemeselect.php and language files to the /wp-content/plugins/ directory,
  2. Be sure you have one theme optimized for mobile and one for desktop
  3. Activate the plugin through the ‘Plugins’ menu in WordPress,
  4. Go to the dashboard settings tab – Xili-theme select – and adapt default values if necessary.


soon according returns in forum

Contributors & Developers

“Xili-theme select” is open source software. The following people have contributed to this plugin.


Translate “Xili-theme select” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


2.0 (2015-05-28)

  • if using a previous version, you must to RENEW Settings via Dashboard Menu Settings/xilitheme select.
  • completely rewritten with latest WordPress functions and filters
  • no need to use specific suffix theme naming as previously.

1.0.4 (2013-05-25)

  • add __construct() php5

1.0.2, 1.0.3

  • maintenance releases


  • Add Android as selector – see line #50. – a newer demo theme default_4touch is available in here.


  • Admin settings improvments for latest 2.8 WordPress.


  • option: now able to detect opera mini browser.


  • option: now able to display current theme view on iPhone / iPod.

© 2015-05-15