I am trying to put dark mode on my website but i dont know how to make the button so users ca press it to turn dark mode on/off
Dark mode
4 replies · opened Apr 9, 2020
what is the code i need to put in the website so the user can i turn dark mode
Hello,
You can consider using the following HTML code:
[Dark Mode](#)
and then the following JS Code at the bottom of the Page:
	jQuery('a.scheme-dark').on( 'click', function(){
		jQuery('body').toggleClass('dark');
	});
We currently do not provide Customization related Support according to the Item Support Policy: https://themeforest.net/page/item_support_policy . You will need to manually code this or Hire a Freelancer to help you out.
Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
It didn't work I need further assistance
Hello,
Unfortunately, a Template or Functionality related to this is currently not included with Canvas. This feature is provided only for Design/Templating Purposes and any further customization or feature/functionality enhancements is your responsibility as we currently do not provide Customization related Support according to the Item Support Policy: https://themeforest.net/page/item_support_policy .
Thanks for Understanding.
Let us know if we can help you with anything else.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard