Enterprise Plugins

External Link Icons

Automatically marks outbound links with an accessible external-link icon, with smart content scoping and exclusions.

JavaScriptAccessibilityProgressive Enhancement

What it does

Site-wide, it detects links that leave the organization’s own domains and appends a small external-link icon, so readers know a link opens an outside site — automatically, with no editor effort.

Why it exists

Signaling outbound links is a common accessibility and usability expectation — and often a compliance requirement — for large public-sector sites. Doing it by hand across hundreds of pages and dozens of editors is unreliable; enforcing it in code guarantees the treatment is consistent everywhere.

Engineering considerations

A lightweight script scopes itself to content regions such as the main and post content and skips chrome like headers, footers, and menus, treating same-network government domains as internal rather than external. The injected SVG is aria-hidden so it never pollutes a link’s accessible name, duplicate marks are guarded against, and when a link wraps a whole card the icon is placed on the card’s heading instead of the bounding link.

Screenshots & media
Outbound icons on external links
Outbound icons on external links
External detection & content scoping (JS)
External detection & content scoping (JS)
Contact

Start a Conversation

Matt works directly with teams and agencies on enterprise WordPress development, from custom Gutenberg experiences to large-scale builds and ongoing engineering support. Available for remote contract engagements.

Connect with Matt