Theme Switcha pugin – improvement to “Save” method
-
Present Situation
The instructions state;
DO NOT click the “Save & Publish” button while in the Theme Customizer. If you do, your theme-switcha-enabled theme will be activated as the default (live) theme, and will be visible to all site visitors.
This prevents the saving of settings at a stage that would otherwise be convenient for many users.
It might be possible to be able to save under these conditions by using the following method;i) After the save button is clicked, the plugin first detects and saves the name of present default theme.
ii) Then the customizations get saved. (At this stage WP will set the default theme to the recently customized theme).
iii) After the save of the theme that is being customized has been completed, the plugin sets the default theme back to the detected original default (and sets the users specific default if needed).
iv) If the save process takes more than a short instant in time, then the user may prefer to have the site placed in to maintenance mode for the duration of the ‘save’ process.
Benefits;
This additional method, would help avoid a (common?) pitfall, make the plugin even more easy to use, and would also allow the consecutive editing of multiple themes or variations of child themes without having to step out of switch mode to be able to do a safe save.
Saving could be done at any time, and would not depend on the state of the settings or mode of use.I hope this is of some use.
Thank you.
- The topic ‘Theme Switcha pugin – improvement to “Save” method’ is closed to new replies.