Ghost has a new look! Orders and accounts made before October 19th, 2026 are available on our legacy platform. To move over a membership, .
Ghost Plugins
Legacy Plugin

Hyperlink External Arrow Icon (#2)

RandomCSSWorks with Squarespace 7.1Free
Hyperlink External Arrow Icon (#2) preview

The original library, featuring hundreds of free copy-and-paste plugins for Squarespace. These legacy plugins are preserved as they were originally released and are available as-is. For no-code plugins with visual editing and live previews, explore the current plugin library.

Overview

Add an arrow icon next to a text hyperlink to let visitors know it is an external link.

Plugin Delivery

Free Plugin

This is a free plugin from the original Ghost Plugins library. Copy the code below and paste it into your Squarespace site. No purchase or account needed.

Squarespace Compatibility & Requirements

Compatibility notes preserved from the original release.

Works with Squarespace 7.1Supported
Custom CSSRequired

Customizable Options

  • Apply Icon To Hyperlink Apply Icon To Hyperlink
  • To assign the icon to a hyperlink, bold the hyperlink text in editing.
  • By default, the plugin applies to paragraph hyperlinks. If you want to apply to a header hyperlink instead, replace ‘p’ with one of the header options:
  • Header 1 - h1
  • Header 2 - h2
  • Header 3 - h3
  • Header 4 - h4
  • The plugin will only apply when the hyperlink is set to bold, so don’t forget that.
  • Customizable Options Customizable Options
  • Icon Width
  • Icon Height
  • Left Spacing
  • Right Spacing
  • Invert (Black or White)
  • Default Icon URL
  • Hyperlink Font Weight
  • Use Your Own Icon
  • Use CSS > Manage Files to upload and generate a file URL for your own icon. Then swap out the default icon’s URL with your file’s URL.

Install

Legacy plugins install by hand, there is no Plugin Studio build for this one.

  1. 1Copy the code from the Code Documentation section below.
  2. 2In Squarespace, open Website, Pages, Website Tools, Custom CSS for CSS, or Settings, Advanced, Code Injection for HTML and JavaScript.
  3. 3Paste the code, save, then refresh your site to see the plugin running.

Code Documentation

From your Squarespace account, go to the Custom CSS. Copy and paste the code in this guide into the Custom CSS Editor box.

CSS
// HYPERLINK EXTERNAL ICON (#2) - BOLD THE HYPERLINK TEXT TO APPLY THE ICON - GHOSTPLUGINS.COM //

p a strong:after {
  width: 18px; // icon width
  height: 18px; // icon height
  margin-left: 5px; // left spacing
  margin-right: 2px; // right spacing
  filter: invert(0); // invert icon
  background-image: url('https://static1.squarespace.com/static/5ba5e044b10f25cb908c506f/t/66ddf85cd4b0e965fd30d4a4/1725823068704/external_icon_2.png'); // icon file
  display: inline-block;
  background-size: contain;
  content: "";
  vertical-align: middle;
}

// HYPERLINK - CHANGE BOLD LINK BACK TO NORMAL FONT WEIGHT - GHOSTPLUGINS.COM //

p a strong {
  font-weight: normal;
}

FAQ

Answers to common questions about setup, customization, and troubleshooting.

Is this plugin free?

Yes. Legacy plugins are free to use on any site, no account or purchase needed.

Will it work on my Squarespace version?

Legacy plugins were built for the version noted in Squarespace Compatibility & Requirements and are provided as-is. Newer platform changes may require small tweaks.

Can I customize it?

Yes. Edit the values in Script Settings or override the selectors listed under Classes and Styling in your Custom CSS.

Do you support legacy plugins?

Legacy plugins are no longer updated. For maintained plugins with Plugin Studio and ongoing support, browse the current plugin library.

Changelog

A history of updates released for this plugin.

Original release

Archived exactly as it shipped in the original plugin library. No further updates are planned for legacy plugins.

Community

Give claps, share your site, and talk with others using this plugin.

Community

0 claps

Show thanks for this plugin.

Loading…