Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2303

[3.3.x] Styles Support & Discussion • Prosilver standard (brower cashing)

$
0
0
I use a heavily modified prosilver on my forum (adapted to a dark layout etc. etc.).
Now I would like to make a (copy ?)of this thme, but then with the original colours.css of prosilver.
The intention is that users can choose between a dark (default) and light layout.

I would like to set this via a dark/light icon using browsercashing.

The intention is NOT that users have to set the light style via the user panel.

What is the best way to do this? Or is it possible to load colours.css (dark) and colours.css (light) twice in the same style


For my color palette it works perfectly via browser caching. Now I want this for the template too

Code:

<script>if (localStorage.getItem('prosilver')){document.head.parentNode.className=""+localStorage.getItem('prosilver')+"";}</script>

Statistics: Posted by bennybernaer — Tue Apr 01, 2025 10:27 am



Viewing all articles
Browse latest Browse all 2303

Trending Articles