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

Target Blank to Button Block

外掛說明

Add Target Blank to Gutenberg Button Block. Provisory fix to add target blank to button blocks.

The target blank feature is already addressed in Gutenberg project GitHub repository. This plugin aims to provide an alternative for those who want this feature now.

Please note that this plugin uses Javascript to add Target blank on Button Block as a fallback.

A screen reader text is also added for better accessibility and a rel="external noreferrer noopener" attribute is added for better security.

It provides two options:

  • Automatically add target blank to ALL Button blocks (default)
  • Only add target blank to links that have the blank CSS class

(see screenshots below)

螢幕擷圖

  • Plugin settings
  • Plugin settings page Location: Appearance > Button block target
  • How to use a CSS class to add target blank only to specific links

安裝方式

  1. Install the plugin and activate.
  2. Got to Appearance > Button block target and choose your options.

常見問題集

How to configure the plugin settings?

Plugin settings are available under Appearance > Button block target.

What will happens once the target blank will be available in Gutenberg?

Once the button block target blank feature is released in Gutenberg, the plugin will display a notice on your WordPress Admin to disable it. But even if you leave the plugin active, it won’t break your site, no worries 🙂

使用者評論

2019 年 3 月 29 日
en attendant l'intégration dans la prochaine version Merci 🙂
2019 年 3 月 22 日
Plugin simple à utiliser. Merci pour cette contribution JB 😉
2019 年 3 月 16 日
On l'installe, un petit blank en classe additionnelle et hop ! Elle fait son boulot parfaitement ! Merci 😀
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Target Blank to Button Block〉的開發相關工作。

參與者

〈Target Blank to Button Block〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Target Blank to Button Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.1

  • Plugin initial commit. Works fine 🙂