Easy Dark Mode

描述

Easy Dark Mode adds a floating toggle button to your WordPress website that allows visitors to switch between light and dark modes with just one click.

Features:

  • One-click toggle between light and dark modes
  • Customizable toggle button position (top-left, top-right, bottom-left, bottom-right)
  • Multiple toggle button styles (circle, square, pill)
  • Option to remember user preference between visits
  • Default mode settings (light, dark, or auto based on system preference)
  • Lightweight with minimal impact on page load speed
  • Works with any WordPress theme
  • No configuration needed – works out of the box
  • Admin settings page for customization

安装

  1. Upload the easy-dark-mode folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to ‘Settings > Easy Dark Mode’ to customize options (optional)

常见问题

Will this work with my theme?

Yes, Easy Dark Mode is designed to work with any WordPress theme. The plugin applies CSS that overrides your theme’s default styling when dark mode is enabled.

Can visitors save their preference?

Yes, by default the plugin remembers each visitor’s preference using localStorage. This can be disabled in the settings.

Does this slow down my website?

No, Easy Dark Mode is designed to be lightweight. It uses minimal CSS and JavaScript that only loads what’s necessary.

Can I customize the colors?

The current version uses a standard dark color scheme. Future versions will include color customization options.

评价

此插件暂无评价。

贡献者及开发者

「Easy Dark Mode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Easy Dark Mode」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.0

  • Initial release