I want to create a dark theme website for nightly visitors. For this I want to add a button to my Menu.
The button needs to change between “Day [sun icon]” and “Night [Moon icon]” When clicked. How do I create this?
Got all the JS and CSS finally..now the smallest but seemingly most difficult part…changing a button text!