|
|
| This WordPress plugin allows you to set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game and custom). Wordpress Tutorial |
Noted That:
|
Start the Tips:1. First Download " multi-device-switcher.zip " Plugin to your Local Computer. (Click Download) 2. Then, Login to your " yourdomain.com/wp-admin " Dashboard. 3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard. 4. Now, Click on "Upload Plugin" button.
5. Now, Browse " multi-device-switcher.zip " Downloaded plugin from your computer, Where you downloaded multi-device-switcher.zip According to Step – 1 Above then, click on " Install Now" 6. Now, Click on " Active Plugin" 7. Then, See left sidemenu. " Multi Device Switcher " folder is added on left sidemenu. Now, Click on " Multi Device Switcher " folder. Noted that: If you do not see " Multi Device Switcher " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ". 8. Now you configure yourself oR Watch video tutorial below about Multi Device Switcher Configurtions and Settings or How to work " Multi Device Switcher " in your WordPress site. oR After Activated Plugin According to Step-6 then,
|
| Guide |
|---|
How to add the Custom Switcher
Setting and Using the PC SwitcherThere are three ways how to Using the PC Switcher. 1. Add a PC Switcher to the footer
2. Add a PC Switcher to your sidebars/widget areas
3. For the theme authors and developers, add a PC Switcher to your theme.
Using default CSS and customized CSS
You can design the PC Switcher in the Style Sheet. HTML output of the PC Switcher
HTML output of the PC Switcher when switched
How to use the Display Switcher ShortcodeThe Display Switcher Shortcode switch the content of the post or page through the detection of the device.
Add the shortcode Attributesdevice (string | empty) The name of the device
if empty, detect the desktop PC Example Shortcode
For theme or plugin developers. Filters The Display Switcher Shortcode through hooks. In that case, edit theme or plugin files.
How to use the Disable SwitcherThe Disable Switcher disable the switching of the theme by a particular URL. If you match the access the url and a string or a regular expression (Regex mode), disable the switching of the theme. Regex mode is for advanced users.
Example
Regex mode (in the case of regular expression)
UserAgent option SamplesDetect the device by JavaScriptMulti Device Switcher set the Cookie that holds the state of the switch. You can get the Cookie and detect the device by JavaScript. Cookies
Example
is_multi_device() functionis_multi_device() function is a boolean function, meaning it returns either TRUE or FALSE. Works through the detection of the device by the Multi_Device_Switcher class. Usage
Example
Parametersdevice name (required) (string) The name of the device
Return Values(boolean) Return boolean whether a particular device. is_pc_switcher() functionis_pc_switcher() function is a boolean function, meaning it returns either TRUE or FALSE. Return the the state of PC Switcher by the Multi_Device_Switcher class. Return true if the theme has switched by the PC Switcher. Usage
Example
ParametersNone Return Values(boolean) Return the state of PC Switcher. is_disable_switcher() functionis_disable_switcher() function is a boolean function, meaning it returns either TRUE or FALSE. Return the state of disabled by the Multi_Device_Switcher class. Usage
Example
ParametersNone Return Values(boolean) Return the state of disabled. Filter hooks
Action hooks
Multi Device Switcher CommandThe Multi Device Switcher Command is command-line tool. Add-on the Multi Device Switcher Command, when you activate the plugin “Multi Device Switcher”. To use the Multi Device Switcher Command is WP-CLI required. NAME
DESCRIPTION
SYNOPSIS
SUBCOMMANDS
For more information about the Multi Device Switcher Command, see |
| phone , allows , separate , theme , device , smart , tablet , mobile , game , custom , |
| Name |
|---|
Read Article https://develop.horje.com/learn/1434/reference