Indicate External Links
A simple and lightweight plugin to indicate external http and https links in posts, pages and custom content by appending a small diagonal arrow icon to the link. No configuration is required just install and activate.
A simple and lightweight plugin to indicate external http and https links in posts, pages and custom content by appending a small diagonal arrow icon to the link.
No configuration is required just install and activate.
A closer look.
- 01Upload the plugin folder to the ‘/wp-content/plugins/’ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
Frequently asked questions.
Where is the admin page?
This plugin does not have any options, so there is no admin page.
Does this work for http and https links?
Yes
Can I customise how the link is displayed?
Yes you can add some CSS to your child theme
Example
.nav-menu .extlink sup { color:’#bada55′; }
For maximum flexibility you can copy the plugins styles to you child theme’s stylesheet and make changes to that if you also prevent the default styles from loading.
You can add CSS rules to enable you to use a glyph from a custom icon font.
To deactivate the default CSS, add the following line to your child theme’s functions.php file:
<?php remove_action('wp_head', 'cc_extlink_style'); ?>
What external links will not have the arrow added?
Linked images will not have the arrows added.
Text links inside image captions will not have the arrows added, but custom CSS can be used to override this.
External links inside WordPress custom menus will not have the arrow added by default. Again, custom CSS can be used to override this.