In reponse to the forum discussion on manual toggling, and inspired by the following Codepen by Marco Pontili
It's possible to get a toggle based on the Codepen working right inside the Publii GUI (without having to edit theme files). Here's a very rudimentary example and tutorial using the latest Simple Theme:
Go to Tools & Plugins > Custom HTML > Footer, and insert the following script (exact same as the Codepen):



