Site theme on per device basis

Chooks22

Group Leader
Joined
May 7, 2019
Messages
10
Preferably like a checkbox below before changing themes, for situations like regular dark theme on PC and abyss theme on mobile.
 
Which means it will be stored in local storages, being loging in doesn't matter and it will be reset whenever I clear cookies/cache? Er, I prefer not.
 
Theme is stored with your user account, so at the moment this wouldn't be possible.
 
> Theme is stored with your user account, so at the moment this wouldn't be possible.

It should be relatively easy to store 2 themes for mobile/pc and use them depending on the user agent.

Edit: just parse user agent for words like android, mobile, tablet, iphone, ipad. Use mobile theme if found anything or pc theme otherwise. You don't even need to parse UA every request. Just very first one then use single theme for the session. IIRC it expires after 15 (or was it 10?) minutes. So in the worst case you will do it 4 (6?) times per hour for every user.
 

Users who are viewing this thread

Back
Top