=== Customize External Links and add Icon === Contributors: blapps Donate link: Tags: nofollow, noreferer, icon external link, nofollow links, external links, nofollow for external links, nofollow external link, nofollow external links, custom icons, remove noreferrer Requires at least: 4 Tested up to: 7.2 Stable tag: 2.3.3 License: GPL2 Customize link attributes, such as nofollow links, remove noreferrer, add icons to indicate external links == Description == This plugin adds and removes link relations such as nofollow and noreferrer to your external links. Furthermore, indication of external links by adding a custom icon to the link text. This plugin also adds automatically that external links will be opened in a new tab. * Add rel=nofollow for all the external links of your posts / pages / menus * Add target=_blank for all the external links of your posts / pages / menus * Exclude domains from addding rel=nofollow for the selected external links * Remove rel=noreferrer for all the external links of your posts / pages * Activate custom icon to indicate external links * Choose from different icons to mark links * Superscript Icon or regular size * Add custom CSS class to icon * Add utm_source=yourdomain to external links (optional; only if the link has no utm_source yet, excluded domains are skipped) The plugin is written by Janine, and is based on CyberNetikz Nofollow for external links plugin. == Installation == = From your WordPress dashboard = 1. Visit 'Plugins > Add New'. 2. Search for 'Customize External Links'. 3. Activate Customize External Links from your Plugins page. = From WordPress.org = 1. Download Customize External Links plugin. 2. Upload the 'customize-external-links' directory to your '/wp-content/plugins/' directory, using your favorite method (ftp, sftp, scp, etc...) 3. Activate Customize External Links from your Plugins page. = Once Activated = 1. Visit WordPress dashboard sidebar in 'Settings > Customize External Links'. 2. Customize settings based on your needs. == Frequently Asked Questions == = Can I exclude domain not to add 'rel=nofollow'? = Yes, excluding certain domain names is possible. Please go to WordPress 'Admin Panel > Settings > Customize External Links' and enter domains. = Can the plugin add utm_source to external links? = Yes. Enter a value (for example your domain name) in 'Add utm_source to External Links'. The plugin appends utm_source=your-value to every external link in your posts and pages. Leave the field empty to turn the feature off. = Does the plugin add utm_source twice? = No. If an external link already contains a utm_source parameter, it is left unchanged. Domains on the exclude list (for example affiliate links) are skipped as well. = Does this plugin work for custom post types? = Yes, custom post types are supported. == Changelog == = 2.3.3 = - new feature: optional utm_source parameter for external links (only added if the link has none) - fix: icon span was nested for every link - fix: nofollow was added even if the option was off; noopener/nofollow were added twice - fix: external/internal detection now uses the link URL and home_url() instead of the whole tag and HTTP_HOST - fix: exclude list matches the link's host (incl. subdomains) or path prefix - fix: missing sanitize callback for settings, activation hook did not fire, settings are kept on re-activation = 2.3.2 = - minor bugfixes = 2.3.1 = - new feature open in a new tab - ready for WP 6.7 - major bugfixes = 2.3 = - ready for WP 6.7 - minor bugfixes - Fontawesome resource updated = 2.2 = - minor bugfixes - Fontawesome resource updated = 2.1 = - ready for WP 6.3 - minor bugfixes - Fontawesome resource updated - added rate link = 2.0 = - added noreferrer - fixed internal links starting with /# - ready for WP 6.2 = 1.9.2 = - fixed bugs in debug mode - ready for wp 6.0 = 1.9 = - fixed bugs in debug mode - ready for wp 5.9 = 1.8 = - fixed internal links starting with # - added manual field for icon/text - ready for wp 5.8 = 1.7 = ready for wp 5.7 = 1.6 = minor bug fix = 1.5 = icon won't be added to internal (anchor) links anymore = 1.4 = minor css adjustments = 1.3 = Tested with Wordpress Wordpress 5.3 = 1.2 = Minor bug fixes = 1.1 = Minor bug fixes = 1.0 = Initial release