Pro theme installation in background

I have to install the pro theme on a site that uses another theme. To make the switch happen in the background I found a plugin called “Theme Switcha”. This allows to display another theme for a user (eg Admin).

However, as explained in the doc you should not do any changes in the theme customizer, but as far as I know pro uses its own theme options, right?

Would this be a viable way to switch the theme?

Hi @Regnalf,

Thanks for reaching out.
The Theme Options are a set of pre-defined settings which can be customized by the user and also provide the option to add the CSS and JavaScript code globally. It has nothing to do with the Theme Switcha plugin, but please remember that we don’t provide any support or investigation to 3rd party plugins or related issues.

Thanks

No, I didn’t expect support for a third party plugin either, your support already gives much more than one can expect from others anyway. :smile:

My question was really just, it looks like pro uses its own theme options that are separate from the standard WordPress customizer. That means for me, all changes I make in the theme options menu of pro should have no effect on the functionality of other themes, correct?

@Regnalf

Hello @Regnalf,

Yes, the Pro theme has its own options. You can find it in Pro > Theme Options. I am just not sure how the Theme Switcha plugin will be able to display the theme properly. We are not familiar with it. It is best that you contact the creators of the plugin instead.

Best Regards.

It was actually a very technical question and Ok, then I’ll try to answer the question myself.

Theme Switcha shows a user a completely different theme, as if it were activated. Only some functions are to be taken with caution (See Important Notice from Theme Switcha). If you change the blogname for example, it will be changed globally for all themes because there is only one options field (blogdescription) in the database for it.

But since the pro-theme options are stored as separate database entries starting with “x_” I don’t see any problem to make changes. And also the headers, footers and content created in the builders are stored in the posts table as post type starting with "cs". So also no collision with other themes so far.

For all interested people here is an article from the developer site of wordpress about saved theme options: https://developer.wordpress.org/themes/customize-api/customizer-objects/

So from my point of view it is no problem to set up a user temporary theme via Theme Switcha, as long as you only use functions that are purely used by pro-theme. I’ve tested it on a test-server and Theme Switcha is a great plugin to prepare a theme for release in the background, with caution on the exceptions described above! (And by the way, if option is enabled, them switcha could also be used in front-end so user themeself could switch a theme)

Please correct me if I have missed something important here.

@Regnalf

Hello @Regnalf,

Glad that you were able to found the proper solution by yourself and thank you for sharing the important information. Please feel free to reach us if you any more concern regarding our theme and theme settings.

Have a great day!
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.