Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
Multi Device Switcher icon

Multi Device Switcher

v1.8.6
by thingsym · 4.3 (11 reviews)

Multi Device Switcher plugin allows you to set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game and custom).

20K+ active installs Updated Jan 17, 2025 Tested to 6.7.2 Requires PHP 5.6
Try Demo Download
Pre-installed Ready in ~10s No card

About Multi Device Switcher

The Multi Device Switcher plugin allows you to set different themes for different devices such as smartphones, tablets, and mobile phones. It also has features like adding custom devices, switching the content of posts and pages for each device, and disabling theme switching for specific URLs. If you need support or want to contribute to the plugin, there are forums and bug reporting options available.

Screenshots

Multi Device Switcher screenshot
Multi Device Switcher screenshot
Multi Device Switcher screenshot
Multi Device Switcher screenshot
Multi Device Switcher screenshot

Frequently asked questions

What does the Multi Device Switcher plugin do?
The Multi Device Switcher plugin allows you to set a separate theme for each device (Smart Phone, Tablet PC, Mobile Phone, Game, and custom). It detects if your site is being viewed by UserAgent and switches to the selected theme.
What are the features of the Multi Device Switcher plugin?
The features of the Multi Device Switcher plugin include: setting a separate theme for each device, adding every device using the Custom Switcher, adding links 'Mobile' or 'PC' in the theme using the PC Switcher to switch to the default theme, switching the content of the post or page for each device using the Display Switcher Shortcode, disabling the switching of the theme for each URL using the Disable Switcher, using the is_multi_device() function to detect the device, and using the Multi Device Switcher Command command-line tool (required WP-CLI).
Where can I get support for the Multi Device Switcher plugin?
You can get support for the Multi Device Switcher plugin by using the forums or reporting bugs. The forum link is: https://wordpress.org/support/plugin/multi-device-switcher/ and the issues link is: https://github.com/thingsym/multi-device-switcher/issues
How can I contribute to the Multi Device Switcher plugin?
You can contribute to the Multi Device Switcher plugin by submitting small patches and bug reports through the issue tracker on Github. Forking the plugin on Github is also a good way to contribute. If you have created or updated your own language pack, you can send gettext PO and MO files to the author to bundle it into the plugin. You can also contribute by answering issues on the forums.
What are the guidelines for contributing to the Multi Device Switcher plugin?
The guidelines for contributing to the Multi Device Switcher plugin are as follows: all development happens on the develop branch, the master branch only contains tagged releases, if you are submitting a pull request, please submit it to the develop branch, and see the links about forking and pull requests for more information.

Changelog

1.8.6

  • update japanese translation
  • update pot
  • fix relative path in the argument of load_plugin_textdomain function
  • the “_doing_it_wrong” warning, which has appeared in WordPress 6.7 and later[#15]
  • update github workflows
  • add Known bugs section to document
  • add phpunit-legacy job
  • ci support php 8.0 later

1.8.5

  • add phpcs job to ci
  • add healthcheck to database container
  • add bats test to ci
  • fix bats test case
  • add test case
  • fix phpcs.ruleset.xml
  • add enqueue_styles method
  • imporve code with phpcs
  • fix composer scripts
  • update github actions

1.8.4

  • tested up to 6.1.0
  • update japanese translation
  • update pot
  • fix composer.json
  • add test case
  • update useragent
  • fix load_textdomain method for testability
  • add msgmerge to composer scripts
  • add support section and enhance contribution section
  • fix license

1.8.3

  • update japanese translation
  • update pot
  • add composer script
  • change makepot from php script to wp cli
  • change plugin initialization to plugins_loaded hook
  • replace assert from assertEquals to assertSame

1.8.2

  • change requires at least to wordpress 4.9
  • change requires to PHP 5.6
  • add test case
  • set the initial value an empty array
  • add hook_suffix argument

1.8.1

  • update japanese translation
  • update pot
  • imporve code with phpcs
  • update wordpress-test-matrix
  • fix test case
  • fix plugin_metadata_links method
  • add load_plugin_data method
  • rename variable from options to option_name
  • add test case for customizer
  • rename method name
  • update composer dependencies
  • change from protected variable to public variable for unit test
  • add timeout-minutes to workflows
  • add phpunit-polyfills
  • update install-wp-tests.sh
  • tested up to 5.8.0
  • fix .editorconfig

1.8.0

  • add PHPDoc
  • update japanese translation
  • update pot
  • fix composer.json
  • add FUNDING.yml
  • change donate link
  • add sponsor link
  • add GitHub actions for CI/CD, remove .travis.yml

1.7.0

  • add test case for cdn
  • add multi_device_switcher/detect_device action hook
  • split switch_theme method into detect_device and switch_theme
  • fix wp-cli
  • add bats test case for cli
  • refactoring with phpstan
  • fix default options via method
  • change tag name
  • change method name
  • improve get_options method
  • replace from get_default_options() to class value default_options
  • fix not valid snake_case format
  • add public as access modifier keywords
  • add PHPDoc
  • add reset-wp-tests.sh, uninstall-wp-tests.sh
  • fix header
  • fix textdomain
  • fix indent and reformat with phpcs and phpcbf
  • add composer.json for test
  • add static code analysis config

1.6.2

  • add prefix into hook tag, change tag name from add_header_vary to multi_device_switcher_add_header_vary
  • for php5.3, change called function via hook from anonymous function to public function

1.6.1

  • add test cases
  • add add_header_vary filter
  • improve cookie settings via wp_headers hook
  • change readme.md file name to upper case
  • add LICENSE file

1.6.0

  • change Requires at least version 3.7
  • remove cache with PC Switcher widget
  • add init function
  • change hook destination from plugin_action_links to plugin_action_links_{$plugin_file}
  • add load_textdomain function
  • add define variable __MULTI_DEVICE_SWITCHER_FILE__
  • check class Multi_Device_Switcher
  • check ABSPATH
  • add isset to conditional statement
  • fix boolean
  • add tests

1.5.4

  • fixed: fix property keyword for testability
  • fixed: fix add_action ‘customize_register’ with __construct()
  • fixed: fix capability

1.5.3

  • fixed: add function multi_device_switcher_get_default_options for wp multi-device #9

1.5.2

  • fixed: fix setcookie() #8

1.5.1

  • fixed: fix preg_split()

1.5.0

  • fixed: refactoring by the PHP_CodeSniffer
  • fixed: change admin functions to class/object methods

1.4.2

  • edited: edit readme
  • new features: Display Switcher Shortcode
  • updated: update default UserAgent
  • fixed: fix pc-switcher ssl url

1.4.1

  • edited: edit readme
  • new features: is_disable_switcher() function
  • new features: is_pc_switcher() function
  • fixed: fix redirect url and pc-switcher url

1.4.0

  • edited: edit readme
  • added: add cookies ‘multi-device-switcher’, ‘disable-switcher’
  • new features: Disable Switcher
  • fixed: fix get_options_userAgent(), multi_device_switcher_get_options()
  • fixed: add reserved words validate
  • new features: Multi Device Switcher Command
  • added: add option settings into Theme Customizer
  • fixed: refactoring by the PHP_CodeSniffer

1.3.0

  • fixed: fix script, style, html and readme
  • new features: is_multi_device() function
  • fixed: fix translation
  • updated: update default UserAgent
  • fixed: replace WP_PLUGIN_URL with plugins_url()
  • fixed: using Page Hook Suffix
  • merged: pull request #3

1.2.3

  • fixed: fix redirect uri with query string, using add_query_arg
  • fixed: fix translation
  • fixed: fix readme

1.2.2

  • improved: improve responsiveness UI
  • fixed: fix html

1.2.1

  • fixed: delete add_contextual_help
  • fixed: fix readme and html

1.2.0

  • added: add PC Switcher Widget
  • new features: PC Switcher
  • added: add the settings link to the plugin page

1.1.2

  • required: at least version 3.4
  • fixed: fix tabs and buttons

1.1.1

  • fixed: change the order of the UserAgent detection
  • updated: update default UserAgent
  • added: add HTTP/1.1 Vary header

1.1.0

  • new features: Custom Switcher

1.0.4

  • fixed: fix the object model PHP5, __construct() to replace Multi_Device_Switcher
  • fixed: wp_get_themes(), and wp_get_theme() to replace get_themes(), get_theme()

1.0.3

  • updated: update screenshots
  • fixed: fix reset button

1.0.2

  • added: add file uninstall.php
  • fixed: split admin_enqueue_scripts() into two functions
  • fixed: detects is_admin()

1.0.1

  • fixed: split multi_device_switcher_init() into two functions

1.0.0

  • Initial release

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…

LiteSpeed Cache icon

LiteSpeed Cache

4.8 · 7M+ installs

All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...

WooCommerce icon

WooCommerce

4.5 · 7M+ installs

Everything you need to launch an online store in days and keep it growing for years. From your…