Wondering if this will always be free?  See why free is better.

Main Menu

Light/Dark Mode Switcher

Started by TwitchisMental, February 05, 2023, 08:18:18 PM

Previous topic - Next topic


Alright, I am running into a small issue with a light/dark mode switch.

I am using this tutorial -

I got the javascript to load, I have the css in my index.css, and the switch itself in the index.template.php .

However, when I go use the switch, it does not actually switch modes. I am hoping I am just missing one small step lol.

I have attached the related files.

Edit : Uploaded wrong themeswitch.js. Correct one uploaded.

Edit 2: I found the issue, it was a simple one lol, just needed to add -
$(document).ready(function() {