Let a user select theme in Drupal 8?

by Marcus C.   Last Updated August 24, 2019 16:07 PM

For a few weeks, I have been developing a site based on Drupal 8 and so far, everything's working fine. Only recently I found a functionality that I had expected to be there, but that now seems to be missing...

In a nutshell, I would like to allow registered users to select the site theme (out of a small pre-defined set). This was a functionality that I was present in Drupal 6, but that seems to have been dropped in Drupal 7 (see the thread here and the discussion here). In that thread, the ThemeKey module was suggested as an alternative, but that hasn't been ported to D8 yet. I also found two more modules (Theme Change and Clever Theme Switcher) that are capable of changing themes in D8, but not based on a user selection.

So, lacking a suitable module (I'm open for suggestions, though), I guess I will have to implement this myself, maybe even code a simple module or extend the Clever Theme Switcher. Unfortunately, I'm at a loss as to how to proceed. Can anybody offer any help?

Thanks in advance.

Tags : 8 theming

Related Questions

Updated March 26, 2015 10:02 AM

Updated March 29, 2015 12:02 PM

Updated March 29, 2015 15:02 PM

Updated April 05, 2015 16:03 PM

Updated April 09, 2015 22:03 PM