External Link Icon for Gutenberg
v1.0.2Owadud · 2026年3月29日 上架
A Gutenberg block for creating a link with a Dashicon or Font Awesome icon. Per-block, not global.
- 正在使用
- 10 以下
- 评分
- 5.0 / 5
- 累计下载
- 449
- 最近更新
- 2026年4月1日
2 条评价需要 WordPress 6.0+已测试到 6.9.12PHP 7.4+
贡献者
截图
External Link Icon for Gutenberg adds a new Gutenberg block called Link with Icon.
Each block contains its own link URL, link text, icon choice, and display options — all configured in one place. There are no global settings that affect your whole site.
How to use:
- In the block editor, click the + button to add a block
- Search for “Link with Icon”
- Insert the block
- Enter your URL in the on-canvas URL field and click Add Link
- Open the block sidebar (right panel) to:
- Set link text
- Toggle new tab / nofollow
- Pick an icon from the Dashicons or SVG Icons tab
- Set icon position (before or after text)
- The live preview updates as you make changes
Icon sets:
- Dashicons — WordPress built-in icon font (32 icons, no extra network request)
- SVG Icons — 32 bundled stroke-based SVG icons, rendered inline (no CDN, no webfont)
Principles:
- No global icon settings — each block is fully independent
- Image links are not affected (this is a dedicated block, not a link filter)
- Server-side PHP rendering — compatible with all caching plugins
- No jQuery required
