Answer the question
In order to leave comments, you need to log in
How to show a user a WordPress site with a different theme?
There is a site, there are two topics. It is necessary that, at the click of a button, the site was displayed in a different topic, when switching to other pages, the second topic remained. Pressed the key - on. first topic.
Those. the very essence is to show the user the entire site with a different theme
Answer the question
In order to leave comments, you need to log in
You have everything written correctly and it works: https://jsfiddle.net/1q39dtzt/
There is a plugin Theme Switcher
Then, probably, you can somehow do it through the sessions and functions of WP itself.
By the way, I saw a similar functionality on some municipal site: in a similar way, support for the version of the site for the visually impaired was implemented.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question