=== Open External Links in New Tab, Add Nofollow, Noopener, Noreferrer, Sponsored === Contributors: NewCodeByte Tags: external links, new window, new tab, noopener, nofollow Requires at least: 4.5 Requires PHP: 7.0 Tested up to: 6.8.1 Stable tag: 1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Manage external links, open them in new tabs, and boost SEO. Highly configurable, security-focused, and XHTML Strict compliant. == Description == **Take full control of your WordPress site's links with Smart External Links Manager!** This powerful plugin ensures all external links open in a new browser window or tab, enhancing user experience and keeping visitors on your site longer. Built with **SEO best practices** and **XHTML Strict compliance** in mind, it offers a seamless integration for both users and search engines. Its **highly configurable** settings panel allows you to precisely tailor link behavior to your needs. The core mechanism uses JavaScript to open links, the preferred method for XHTML 1.0 Strict compliance, avoiding `target` attribute modifications that could invalidate your markup. If JavaScript is disabled, links gracefully open in the current window. Ideal for blogs, affiliate sites, magazines, and business websites that rely heavily on external links. **Key Features Include:** * **Automatic New Tab for External Links:** Improve site engagement by default. * **XHTML Strict Compliant:** Uses JavaScript for `window.open()`, preserving markup validity. * **Security First:** Automatically adds `rel="noopener"` to all modified links. * **SEO Enhancements:** * Option to add `rel="noreferrer"` for enhanced privacy. * Option to add `rel="nofollow"` for specific link types. * Option to add `rel="sponsored"` for paid or affiliate links. * **Granular Control with Lists:** * **Force List:** Specify URLs or patterns (e.g., internal PDFs, specific pages) that should *always* open in a new tab. * **Ignore List:** Define URLs or patterns that should *never* open in a new tab, even if external (highest priority). * **User-Friendly Settings:** Intuitive interface to manage all options, including dynamic lists. * **Lightweight & Efficient:** Designed to be performant and not slow down your site. * **Internationalization Ready:** Easily translatable into any language. **Why Choose Smart External Links Manager?** * **User Experience:** Keep users on your site while allowing them to explore external resources. * **SEO Friendly:** Proper use of `rel` attributes (`noopener`, `noreferrer`, `nofollow`, `sponsored`) without altering `href` for search engines. * **Compliance:** Adheres to XHTML Strict standards for modern web development. * **Flexibility:** Extensive configuration options to suit any website's needs. * **Developer Support:** From the creator of NewCodeByte, with a commitment to quality and updates. **Future Enhancements Planned:** * Visually indicating external links with icons. * Excluding specific links via CSS selectors. * Advanced management for internal link behavior. * And much more! == Installation == 1. Upload the `smart-external-links-manager` folder to the `/wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Configure the settings under **Settings > Links Manager**. == Frequently Asked Questions == = Does this affect SEO? = This plugin is designed to be SEO-friendly. By using JavaScript to open links in a new tab and correctly managing `rel` attributes (like `noopener`, `noreferrer`, `nofollow`, `sponsored`), it doesn't negatively impact SEO. The `href` attribute itself is not modified for search engine crawlers. Opening links in a new tab is primarily a user experience choice. = Why use JavaScript instead of target="_blank"? = Using `window.open()` via JavaScript is the recommended method for XHTML 1.0 Strict compliance. Directly adding `target="_blank"` can invalidate strict markup. This JavaScript approach also allows for dynamic addition of window features like `noopener` and `noreferrer` effectively. = How does this plugin handle WordPress external links? = It automatically identifies external links on your WordPress website and uses JavaScript to open them in a new tab or window. The plugin also manages important SEO attributes like rel="noopener", "nofollow", and "noreferrer", giving you full control. = Can I customize which links open in a new tab? = Yes, you can use the Force List and Ignore List to specify URLs or URL patterns to always or never open in a new tab. = Is this plugin compatible with caching and minification plugins? = Yes, it is lightweight and works well alongside most caching and optimization plugins. = What is the priority of Force/Ignore lists? = 1. **Ignore List:** Links matching patterns here will *always* open in the *same* tab. 2. **Force List:** If not ignored, links matching patterns here will *always* open in a *new* tab. 3. **Default Behavior:** If not in ignore or force lists, external links open in a new tab, internal links in the same tab. == Screenshots == 1. The main settings page showing general options. 2. Managing the Force List with the dynamic item adder. 3. Managing the Ignore List. 4. The helpful Guide & Support section within the settings. *(Screenshots will be available on the WordPress.org plugin page.)* == Changelog == = 1.0 = * Initial stable release. * Opens external links in a new window/tab using JavaScript (XHTML Strict compliant method). * Adds `noopener` by default to new windows for security. * Configurable options: * Enable/disable plugin functionality. * Add `noreferrer` to window features for new tabs. * Add `rel="nofollow"` to links modified by the plugin. * Add `rel="sponsored"` to links modified by the plugin. * Force List: Specify URLs/patterns to always open in a new window. * Ignore List: Specify URLs/patterns to never open in a new window (overrides external/force). * User-friendly interface for managing Force and Ignore lists with AJAX-like behavior. * Admin settings page (Settings > Links Manager) with a comprehensive Guide & Support section. * Internationalization ready (.pot file included). == Upgrade Notice == = 1.0 = Initial stable release. Configure your external link preferences under Settings > Links Manager. == Support == If you need help or have a question, the best place to ask is the support forum on WordPress.org (once the plugin is listed). You can also visit NewCodeByte for more information. Found this plugin useful? Please consider leaving a ★★★★★ review! Want to support future development? Buy me a coffee ☕!