How to Open External Links in a New Tab in WordPress

How to Open External Links in a New Tab in WordPress

When a reader clicks a link to another website from your article, many site owners prefer that link to open in a new tab, so the reader can come back easily. Doing this by hand for every link in every post is tedious, and it’s easy to forget the security attribute that should go with it. This guide shows you how to open external links in a new tab in WordPress, how to do it automatically across your whole site and how to handle noopener and nofollow correctly.

There are good arguments on both sides:

New tab Same tab
Readers keep your article open Readers stay in control of their browser
Useful for references, tools and downloads The back button works as expected
Common on blogs and documentation Often preferred by accessibility guidelines

A sensible rule many sites follow: open links to other websites in a new tab, keep links within your own site in the same tab, and tell readers when a link opens a new tab.

What noopener and nofollow Mean

  • target="_blank" opens the link in a new tab.
  • rel="noopener" stops the new page from controlling the original tab through JavaScript. It’s an important security setting for any link that opens a new tab.
  • rel="nofollow" tells search engines you don’t vouch for the linked page. Google treats it as a hint. It’s appropriate for sponsored, user-submitted or untrusted links.
  1. Select the linked text in your post.
  2. Click the link to open the link settings.
  3. Turn on Open in new tab.

WordPress adds target="_blank" and rel="noopener" automatically. This works well for a few links but is easy to forget across hundreds of posts.

Method 2: Do It Automatically With a Plugin

External Link Isolator from Simpli Plugin is a free plugin that automatically secures external links in your post content by adding target="_blank" and rel="noopener nofollow". Links to your own site are left alone.

  1. Download the plugin ZIP from its product page.
  2. Go to Plugins → Add New Plugin → Upload Plugin.
  3. Upload the file, click Install Now, then Activate Plugin.
  4. Open a post with external links and check the result by inspecting a link in your browser.

Because the plugin adds nofollow to external links, decide first whether that fits your linking policy. Many sites are happy to nofollow all outbound links; others prefer to leave links to trusted sources followed.

Need different rules for sponsored links, affiliate links or specific domains? Simpli Plugin’s team builds custom content tools for WordPress.

Talk to Our Developers →

  • Always pair _blank with noopener.
  • Use rel="sponsored" for paid or affiliate links, as search engines recommend.
  • Tell readers about new tabs, for example with a small icon or “(opens in a new tab)” for screen reader users.
  • Check links regularly. External pages move or disappear; broken links frustrate readers.
  • Keep internal links in the same tab so navigating your own site feels natural.

Common Problems and How to Fix Them

The links may be in a widget, menu or page builder module rather than post content. Content-based tools only change links inside posts and pages.

Your site may be using a different domain for some links, such as http:// instead of https://, or a staging address. Update those links to your live domain.

Use rel="sponsored" for affiliate links, either by hand or with a custom rule.

Frequently Asked Questions

No. Opening links in a new tab doesn’t affect rankings. The nofollow attribute affects how search engines treat the link, not your page.

Is noopener still needed?

Modern browsers apply similar protection by default, but adding noopener is still good practice for older browsers.

Not necessarily. Nofollow sponsored, user-submitted and untrusted links. Links to trusted sources can stay followed.

Consistent external links keep readers on your site and protect them from unsafe pages. Set links individually where needed, or automate it across your content with sensible attributes.

Download External Link Isolator for free, and browse the full Simpli Plugin library. If you need custom link rules, our developers can build them.

Request a Custom Plugin →