這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Show/Hide Shortcode

外掛說明

This plugin allows you to easily add “Show more…” links to your site. Just enclose the content to be hidden between [showhide] and [/showhide]. There is no modification to the backend or fancy editor. Hence the code for this plugin is minimal and the plugin should be easy to review for security issues as well not impact performance.

螢幕擷圖

  • Example view of the block editor.

常見問題集

Where do I need to click?

Use the block editor two blocks:
[showhide]
and
[/showhide]
Everything in between will be hidden and a link “Show more…” is displayed. When clicked, the hidden content is revealed.

Can I change the default “Show more…” text?

Yes, the [showhide] shortcode accepts the argument show_caption:
[showhide show_caption=”Do you want to know more?”]
Your Content
[/showhide]
Similarly, use the hide_caption attribute to change the “Show less…” default caption.

使用者評論

2021 年 7 月 21 日
No clutter, it simply works as it is intended. It would be better though if you could write this in vanilla JavaScript rather than relying to jQuery.
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Show/Hide Shortcode〉的開發相關工作。

參與者

將〈Show/Hide Shortcode〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial Release