Use a shortcode to create a light/dark mode.
Author: | GAUTIER Antoine (profile at wordpress.org) |
WordPress version required: | 5.2 |
WordPress version tested: | 5.6.4 |
Plugin version: | 0.01.00.00 |
Added to WordPress repository: | 20-05-2020 |
Last updated: | 06-02-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | https://github.com/Gautier-Antoine/gaplugin-d... |
Total downloads: | 779 |
Click to start download |
After installing the plugin.
You’ll have a new menu in your admin page “GAPlugin”.
It will have a “darkmode” menu.
Here you’ll be able to activate a test affecting the body of your website.
You’ll be able to modify your CSS (Cascade Style Sheet) to manage your darktheme:
– for the light theme :root
– for the dark theme [data-theme=”dark”]
You can take a look in the test mode to see how to use it.
You just have to use the shortcode in your theme to display the checkbox for the darkmode.
Here is the shortcode to use: [GAP-darkmode]
Enjoy !
Take a look at my website GautierAntoine.com