External Link Icon for Gutenberg

Description

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:

  1. In the block editor, click the + button to add a block
  2. Search for “Link with Icon”
  3. Insert the block
  4. Enter your URL in the on-canvas URL field and click Add Link
  5. 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)
  6. 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

Screenshots

Blocks

This plugin provides 1 block.

  • Link with Icon

Installation

  1. Upload the plugin folder to /wp-content/plugins/
  2. Activate from the Plugins menu
  3. In the block editor, search for “Link with Icon” in the block inserter

FAQ

Where do I find this block?

Click the + (block inserter) in the editor and search for “Link with Icon”. It’s in the Text category.

Can I put multiple Link with Icon blocks on the same page?

Yes — each block is fully independent.

Does it work with page caching?

Yes. The block is rendered server-side via a PHP callback, so cached pages always include the correct icon.

How do I remove the icon?

Open the sidebar, scroll to the icon picker, and click ✕ Remove icon at the bottom of the picker.

Can I style the link with theme styles?

Yes. The block supports WordPress block color, typography, and spacing controls. Your theme’s link styles also apply normally.

1.0.0

  • Initial release
  • Dedicated Gutenberg block with on-canvas URL entry
  • Sidebar icon picker with Dashicons and SVG icon tabs (32 icons each)
  • Icon position control (before / after)
  • New tab and nofollow toggles
  • Live preview in the editor canvas
  • Server-side PHP render (cache-safe)

1.0.1

  • Rename Plugin name
  • Solved contributor name

1.0.2

  • Name Update

Reviews

Read all 1 review

Contributors & Developers

“External Link Icon for Gutenberg” is open source software. The following people have contributed to this plugin.

Contributors