| 开发者 | plugnest |
|---|---|
| 更新时间 | 2026年10月12日 21:09 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[minidarkmode] shortcode to place the toggle anywhere (menu, footer, page builder) — turn the floating button off and use the shortcode alone if you prefer/wp-content/plugins/, or install the zip via Plugins → Add New.No — that is the point. Filters over images make photos muddy and break galleries and maps. Mini Dark Mode only recolors text, backgrounds and interface components through CSS variables. Your images render exactly as authored.
No. A tiny inline script in the page head applies the saved mode before the first paint.
The core mechanism (one class + CSS variables) works with any theme. Ships with tuned rules for Astra, Elementor, Spectra/UAGB, Visual Portfolio, MEC and wpDiscuz. Anything else can be adjusted with the colour controls and the Advanced tweaks area.
Yes. Turn off the floating button in the settings and place the [minidarkmode] shortcode anywhere — menus, footers, Elementor shortcodes widget, etc.
Yes, per browser via localStorage. Visitors who never chose get their operating system's color scheme preference.
Yes. While dark mode is on, the html element carries the class mdm-dark-mode and the attribute data-mdm-dark-mode="dark". Every colour is exposed as a CSS custom property: --mdm-accent, --mdm-link, --mdm-link-hover, --mdm-heading, --mdm-text, --mdm-border, --mdm-bg, --mdm-surface, plus the reference palette values --mdm-palette-*. The toggle button itself is .minidarkmode-toggle.
No. Mini Dark Mode is front-end only.