该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Dark Mode Toggle Block

描述

A WordPress block for toggling between between light and dark appearance on your site.

区块

该插件提供了 1 个区块.

  • Dark Mode Toggle Allow visitors to switch between light and dark appearances.

安装

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly (if available).
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Add the block from the inserter within the WordPress editor.
  4. If necessary, add CSS variables using .theme-dark to assign dark mode colors. Learn more

常见问题

Can the Dark Mode Toggle block be used with my theme?

Yes! You will need to add CSS variables to map existing coor values to a dark style though. Learn more.

Where can I send feedback or ideas?

Please reach out via the official plugin support forum.

Where can I find the development files?

You can find the development files for the block on GitHub.

评价

2025 年 3 月 27 日 1 回复
This is absolutely perfect for what I needed! Nice light plugin, slider looks neat with good customisation options, and ensured I could get my site displaying exactly as I want it in dark mode. I didn’t find it clear from the plugin description how the plugin works, so it might be useful to add a direct link to the readme file where you can find that information github[dot]com/richtabot/dark-mode-toggle-block/blob/main/README.md
阅读所有1条评价

贡献者及开发者

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

贡献者

更新日志

1.0.5

  • Improve accessibility.
  • Updated tested up to.

1.0.4

  • Improve default colors.

1.0.3

  • Update readme.

1.0.2

  • Improve block example.

1.0.1

  • Update prefix.
  • Improve inline script.
  • Use apiVersion 3.

1.0.0

  • Initial release.