
內容簡介
為 WordPress 「Gutenberg 按鈕區塊」加入 Target Blank。本外掛暫時提供一個解決方式,讓按鈕區塊新增 Target Blank 的功能。
目前 Target Blank 已在 Gutenberg 專案的 GitHub 存儲庫中得到解決。本外掛的目的是要提供一個現在就能使用此功能的替代方案。
請注意,本外掛使用 Javascript 為回退方式,在「按鈕區塊」上新增 Target Blank。
本外掛還會為了更好的可訪問性,在按鈕區塊上加入「螢幕閱讀器文字」,並加入 rel="external noreferrer noopener" 屬性,以增強安全性。
本外掛提供兩個選項:
自動為所有「按鈕區塊」新增 Target Blank(預設)
僅新增至具備 blank CSS 類別的連結
(請參閱以下螢幕截圖)
外掛標籤
開發者團隊
原文外掛簡介
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)
