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

Details: Show and Hide

描述

Beginning with WordPress v6.3, a Details Block is included in WordPress. This plugin is no longer needed.

The block allows you to easily show and hide content using built-in browser functionality. It doesn’t load any external JavaScript and relies on native HTML functionality. You can configure the appearance using built-in editor controls.

It uses the HTML details element to show and hide the content.

屏幕截图

  • Collapsed details element with clickable heading.
  • Expanded details element with inner content.
  • Editor view of adding the block and inner content.

区块

该插件提供了 1 个区块.

  • Details: Show and Hide A block for showing and hiding content.

安装

  1. Upload the plugin files to the /wp-content/plugins/wp-details-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Start adding content.

常见问题

How do I customize the styling?

The wrapper <details> element has the class .wp-block-bm-wp-details-container that you can use to target it and adjust styling as needed.

The <summary> element has the class .wp-block-bm-wp-details-block.

Where can I learn more about browser support?

Details is supported in most major browsers (Chrome, Firefox, and Safari). Caniuse.com has a breakdown of browser support for the details element.

评价

此插件暂无评价。

贡献者及开发者

「Details: Show and Hide」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0.4

  • Add deprecation notice

1.0.3

  • Deploy from Github

1.0

  • Initial release