External Link Icon and Styling

External Link Icon and Styling en

Installations 42 Likes 7

Automatically adds a recognizable icon after external links in entity content areas (entry, posts, dashboard widgets, etc.) and provides custom properties to style them further.

This plugin is compatible with all official themes and should integrate seamlessly with Marketplace themes. It pairs well with Mention Type Indicators.

Inter-campaign links are also supported. When you import an entity from a different campaign and that entity has mentions, your copy of the entity will still point to the original targets of those mentions across campaigns. Those links will show a "broken link" icon to remind you to create your own version of those entities if needed, and use the same stylings as external links, though you can control color separately to differentiate them.

Settings

You can add and customize the following CSS custom properties to your campaign to give external links a more distinct appearance:

:body {
	--external-link-color: var(--link-text);
	--external-link-hover-color: var(--link-hover);
	--external-link-font: inherit;
	--external-link-size: inherit;
	--external-link-weight: inherit;
	--external-link-decoration: inherit;
	--intercampaign-link-color: var(--link-text);
	--intercampaign-link-hover-color: var(--link-hover);
}

The default values above correspond to the official Default theme.


Want to show appreciation for my plugins or request one-on-one CSS help? I accept tips on Ko-fi (no account needed): Support me on Ko-fi.com

Latest version 1.5

Released 1 day ago

Added support for inter-campaign links created when an entity imported from a different campaign has mentions (which still point to their original target across campaigns). Those will show a "broken link" icon and use the same stylings as external links, though you can give them a distinct color using the new custom properties --intercampaign-link-color and --intercampaign-link-hover-color.