|
| Theme switching done right. Wordpress Tutorial |
Noted That:
|
Start the Tips:1. First Download " theme-switcha.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 " theme-switcha.zip " Downloaded plugin from your computer, Where you downloaded theme-switcha.zip According to Step – 1 Above then, click on " Install Now" 6. Now, Click on " Active Plugin" 7. Then, See left sidemenu. " Theme Switcha " folder is added on left sidemenu. Now, Click on " Theme Switcha " folder. Noted that: If you do not see " Theme Switcha " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ". 8. Now you configure yourself oR Watch video tutorial below about Theme Switcha Configurtions and Settings or How to work " Theme Switcha " in your WordPress site. oR After Activated Plugin According to Step-6 then,
|
| Guide |
|---|
|
Getting Started
Important: Please read this support topic ! More info on installing WP plugins Usage: Switch Themes After activating Theme Switcha, visit the plugin settings page. There you can enable theme switching via the “Enable Switching” option. After that option is enabled, a menu of all available themes will be displayed on the settings page. From there you can click any thumbnail to switch privately to that theme. While you view the switched theme, your regular visitors will continue viewing your normal active theme. To verify this, visit your site in a different browser (with clean cache and cookies). Tip: In the plugin settings, a thumbnail menu of all available themes will be displayed after you enable the “Enable Switching” option. Otherwise if that option is disabled, no theme thumbnails will be displayed. Usage: Display Menus In addition to switching themes via the settings page, you also can display a menu of switchable themes. In order for any theme-switch menu to work, the plugin setting “Allowed Users” must be set to “Everyone”. So all visitors can enjoy your site using their preferred theme. Theme Switcha provides several shortcodes for displaying theme-switch menus:
These shortcodes can be included in any WP Post, Page, or supportive widget (e.g., the default “Text” widget that’s included with WordPress). If you would rather include the theme lists via your theme, you can use any of these template tags:
Alternately you can call the shortcodes in your theme template using do_shortcode . Usage: Theme-Switch Links Theme Switcha also enables you to create theme-switch links that you can share with others. To begin, follow these steps:
For example, if you have a theme named “My Awesome Theme” that is located in a directory named
What happens if you enter that URL in a browser? Well, that depends on the plugin setting, “Allowed Users”:
We’ll look at how to make a Passkey Link in the next section. For the other two options, “Everyone” and “Only Admin”, you can either share the URL as-is, or make it a clickable hyperlink such as the following example:
Usage: Passkey Links Passkey links are a great way to enable private theme switching without giving the user access to the WP Admin Area. To make a Passkey Link, follow these steps:
After saving changes, thumbnails will be displayed for each available theme. So to get a Passkey Link:
Done! You now have a Passkey Link ready to paste wherever. It will look similar to this:
So you can either share the Passkey Link as-is, or make it a clickable hyperlink such as the following example:
Here are some notes about Passkey Links:
Here is an example of proper passkey format:
Here you would replace “THEMESLUG” with the slug of the theme you want to preview, and “PASSKEY” with the current passkey (provided via the “Passkey” setting). Here is an example showing how to make a clickable link from the Passkey URL:
Important This plugin should not be used together with WordPress features such as Gutenberg Block Editor, Theme Customizer, Widgets, Menus, and other theme-related options. Doing so may result in private changes being made public on the current active theme. Learn more . Plugin Options Theme Switcha provides three basic configurations via the “Allowed Users” option:
Other options should be self-explanatory. If you have any questions, feel free to post in the Theme Switcha Support Forum . I usually respond very quickly ???? Note: It’s a good idea to change the Passkey periodically to prevent access to alternate themes (only required when using “Passkey only” configuration). How It Works If you’re still scratching your head at this point, here are some points that may help to clarify how theme-switching works:
So while you re viewing and working on a switched theme, all other users will continue to see/use the default active theme. When you are done working on your switched theme, you can disable theme switching via the plugin settings. Upon doing so, you will be viewing the default active theme like everyone else. Also keep in mind that theme-switching is browser-specific (via cookies). So if you need to view the theme in multiple browsers, the easiest way is to use the passkey link. The passkey enables you to quickly switch themes by simply entering the URL in your browser’s address bar. See the next section for details. Because Theme Switcha is browser-specific, you can easily test theme-switching functionality by simply visiting your site in a different browser (with cleared cache and cookies). For example, in one browser you can be logged in to WordPress and switch to some other theme. While in the other browser, you are not logged in and thus viewing the site as a regular visitor, so you will be viewing the default active theme. Going Live Here are the steps to “go live” with your switched theme once you are ready to do so:
After these steps, the active theme will be visible to you and everyone else. Excluding Themes
To exclude a theme from theme switching, open the theme’s Here is a summary:
You can remove the Status file header at any time to make the theme available for theme switching. Troubleshooting If theme-switching isn’t working for you, here are some things to check:
Those are the main things to check. If theme-switching still isn’t working for your site, most likely something is interfering with normal functionality. In that case, you can do some basic troubleshooting to help identify the culprit. Current active theme Theme Switcha provides a function that returns the name of the currently active theme:
This can be used just like any other WP function, in plugins and theme templates. Like the plugin? If you like Theme Switcha, please take a moment to give a 5-star rating . It helps to keep development and support going strong. Thank you! Uninstalling This plugin cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen. |
| theme , switching , done , right , tutorial , |
| Name |
|---|
Read Article https://develop.horje.com/learn/1434/reference