Set Default Theme and Configure Toggle Button
Set the Default Theme
The default theme for the template is dark mode. If you want to change it to light mode, follow these steps:
Open the
js/dark-light-theme.js
file.Locate the following line at line 5:
Change the value
'dark'
to'light'
:Save the file. The default theme will now be set to light mode.
Hide the Theme Toggle Button
If you don't want users to switch between dark and light themes and prefer to lock the theme to your chosen default, you can simply hide the toggle button:
Open the
css/styles.css
Add the following CSS rule:
Save the file. The toggle button will no longer be visible in the header, but the code will remain in case you want to re-enable it later.
Last updated