• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Equalize Digital Home

Equalize Digital

Website Accessibility Consulting, Training, and Development

  • My Account
  • Support
  • Checkout
  • Software
    • Accessibility Checker
      • Features: Accessibility Checker
      • Documentation: Accessibility Checker
      • Buy Accessibility Checker
      • Start Free
    • ArchiveWP
      • Documentation: ArchiveWP
      • Buy ArchiveWP
      • Demo All Plugins
  • Services
    • Accessibility Audits
    • User Testing
    • Accessibility Remediation
    • VPAT & ACR Preparation
    • Accessibility Monitoring
    • Web Accessibility Training
    • Accessibility for Agencies
  • Company
    • About Us
    • Our Team
    • Industry Expertise
    • Accessibility Statement
    • Contact Sales
    • Become An Affiliate
  • Learn
    • Online Courses
    • Accessibility Meetup
    • Articles & Resources
    • Accessibility Craft Podcast
    • Upcoming Events
    • Office Hours
    • Custom Accessibility Training
    • Global Accessibility Awareness Day 2026
  • Contact Sales
  • My Account
  • Support
  • Checkout
Home / Accessibility Checker / Add Warning to Links Opening in a New Window or Tab

Add Warning to Links Opening in a New Window or Tab

Does your WordPress site include links that open in a new tab or window? Most WordPress sites do. This article explains how to easily add a warning to links that open in a new tab or window, which can help prevent some users from becoming disoriented or otherwise inconvenienced.

How to Fix Link Opens New Window or Tab

If your website has links that open in a window or tab and users are not sufficiently warned or notified of this, you can easily resolve that issue by using the WordPress Accessibility Checker plugin.

Step 1

Click into the Accessibility Checker plugin settings in your WordPress dashboard (you must be logged in with an administrator account to access these settings).

Arrow pointing to the Settings page in the WordPress admin menu, which can be found under the Accessibility Checker top-level page.

Step 2

Go to the “Fixes” tab in the Settings Tabs navigation.

Arrow pointing to the Fixes page in the Settings tab navigation below the Accessibility Checker Settings H1.

Step 3

Check the box for Add Label To Links That Open A New Tab/Window, then scroll to the bottom of the page and click the “Save Changes” button.

Checkbox labeled: Add a label and icon to links with target="_blank" informing users they will open in a new tab/window. Note: This setting will of no effect if the "Block Links Opening New Windows" fix is enabled.

Note: Automated accessibility fixes use JavaScript or other methods to modify how your website functions. Occasionally, a WordPress theme or extension may conflict with or prevent our fixes from working as expected. We recommend testing these fixes on a local or staging copy of your website first.

Not seeing the fix?

The Add Label To Links That Open A New Tab/Window accessibility fix should start working immediately; however, if you don’t see the fix, it could be because you’re seeing a cached version of your website. Try clearing the cache in any caching plugins and on your hosting account, then look at your site in an incognito window to confirm the fix worked.

Note: Turning on a fix will not instantly remove related issues from Accessibility Checker reports. After turning on a fix, you can clear issues from reports by running a full site scan in Accessibility Checker Pro or by saving any individual post/page to trigger a rescan of that post/page only.

What This Fix Does

When enabled, the Add Label To Links That Open A New Tab/Window looks for all links that contain target="_blank". For any link with that attribute, a visual and auditory warning will be added to inform users that the link will open in a new tab or window.

Visual Warnings

Links that open new windows or tabs will have a new-window icon (a square with an arrow extending up from the top-right corner) appended to the link text.

A small block of sample body text. Some of the body text is linked, and next to the link text is a small arrow icon inside of a box.

Hovering over the link using a mouse or navigating to the link with a keyboard will reveal a visible tooltip with the phrase “opens a new window”.

A screenshot of a small block of sample body text. Some of the body text is linked, and next to the link text is a small arrow icon inside of a box. The link text has been hovered with a mouse hover effect, showing a small snippet of warning text that reads "opens a new window".

This tooltip complies with WCAG 1.4.13 Content on Hover or Focus. It can be:

  • hovered with a mouse,
  • dismissed with the escape key,
  • and is persistent until hover or focus is removed or the user dismisses it.

The tooltip is helpful for less-savvy internet users or people with cognitive disabilities who may not understand what the icon means.

Auditory Warning

The fix also adds an aria-label to the link which includes the existing link text and “opens a new window”. This enables screen readers to provide an auditory warning of the new window behavior.

Here is an example:

Read WCAG 2.2

Here’s the code for that link:

<a href="https://www.w3.org/TR/WCAG22/" target="_blank" rel="noreferrer noopener" aria-label="Read WCAG 2.2, opens a new window" data-nww-processed="true">Read WCAG 2.2<i class="edac-nww-external-link-icon" aria-hidden="true"></i></a>

Available in 32 Languages

Accessibility Checker is available languages in more than just English. The plugin has been translated into 31 other languages. The “opens a new window” tooltip and aria-label will output in the language that matches your site.

Works with Linked Images

This fix also supports adding warnings to linked images. It will add both the icon and the tooltip to the linked image, and the aria-label will be built based on available accessible names from image alternative text, text in the image, or a combination.

Here is an example:

W3c Web Accessibility Initiative (WAI) WCAG 2.2 Web Content Accessibility Guidelines

Code for example:

<a href="https://www.w3.org/TR/WCAG22/" target="_blank" rel=" noreferrer noopener" aria-label="W3c Web Accessibility Initiative (WAI) WCAG 2.2 Web Content Accessibility Guidelines, opens a new window" data-nww-processed="true"><img decoding="async" width="800" height="450" src="https://equalizedigital.com/wp-content/uploads/2024/03/WCAG2-2.png" alt="W3c Web Accessibility Initiative (WAI) WCAG 2.2 Web Content Accessibility Guidelines" class="wp-image-7567" style="width:444px;height:auto"><i class="edac-nww-external-link-icon" aria-hidden="true"></i></a>

Modifier CSS Classes

If you need to suppress the icon or tooltip for specific links or sections of your page, you can do so without writing custom CSS or JavaScript. The fix supports two modifier classes that, when added to a containing element, will prevent the fix from adding the icon or tooltip to any links inside that element.

Suppress the Icon

Add the class edac-nww-no-icon to any element wrapping one or more links to prevent the new-window icon from being added to those links. The tooltip and aria-label will still be applied.

<div class="edac-nww-no-icon">
  <a href="https://example.com" target="_blank">Example link</a>
</div>

This is useful for areas of your site where the icon conflicts with an existing design — for example, a navigation menu, a set of social media icon buttons, or a card component where adding an extra icon would break the layout.

Suppress the Tooltip

Add the class edac-nww-no-tooltip to any element wrapping one or more links to prevent the hover/focus tooltip from being added to those links. The icon and aria-label will still be applied.

<div class="edac-nww-no-tooltip">
  <a href="https://example.com" target="_blank">Example link</a>
</div>

This can be useful when a section of your site already provides its own contextual warning about new windows, making the tooltip redundant.

Combining Both Classes

You can apply both classes to the same element to suppress both the icon and the tooltip for all links inside it. The aria-label will still be added to those links, ensuring screen reader users continue to receive the auditory warning.

<div class="edac-nww-no-icon edac-nww-no-tooltip">
  <a href="https://example.com" target="_blank">Example link</a>
</div>

Note: These classes must be on a parent or ancestor element of the link — they cannot be placed on the <a> tag itself. To add these classes in the WordPress block editor, select the containing block and add the class in the Advanced > Additional CSS class(es) field in the block settings sidebar.

Both anww-no-icon and anww-no-tooltip are also accepted as legacy class names for compatibility with the standalone Accessibility New Window Warnings plugin.

FAQ

The icon is getting added to my social media links. Is that expected?

Yes. When it comes to accessibility, warning users about links that open in new tabs or windows applies to all links, not just those in your body text. Adding the visible icon is essential for users with cognitive disabilities or mobility challenges, so they are warned about the new window before clicking on or activating links – it’s not sufficient to add screen reader text for blind and visually impaired users.

Depending on how you add linked icons, we understand this can result in a less-than-ideal appearance. If you don’t like how the visible icon appears, you have a couple of options: either change the link so it doesn’t open in a new window, or change the design of your social media or icon buttons, either in that plugin’s settings or with custom CSS.

It’s recommended not to hide the visible icon, but you could do so in some circumstances, since the tooltip will provide a visual warning before the link is clicked.

Why is the icon added to my images?

The icon is added to all linked images that are set to open in a new tab. If you have images that are linked and the links open in a new window or tab, the icon will be added. This is expected behavior and a best practice.

If you don’t want the icon there, here are some options:

  • Consider whether the image should actually be linked. WordPress’s core default behavior is to link images to the file URL when inserting them into the block editor. In most cases, there is no reason to link images to their file URLs; you should remove the links entirely to fix this. To change this default behavior moving forward, go to yoursite.com/wp-admin/options.php; find the image_default_link_type option, and change the value from “file” to “none”.
  • Change the link to not open a new tab. If the image needs to be linked, there is little reason to open the link in a new tab. Best practice is not to open links in new windows or tabs. If you disable the setting for opening the link in a new window or tab, the icon will go away.
  • Hide the icon. In some circumstances, you can hide the icon and rely on the tooltip to provide the visible warning.

How do I hide the icon?

In some instances, you may want to hide the icon and allow the tooltip to provide the visible warning only on link hover or focus. There are two ways to do this.

Option 1: Use the modifier CSS class. Add the class edac-nww-no-icon to the element wrapping the link or links where you want to suppress the icon. This is the recommended approach when you can edit your HTML or block markup, as it does not require writing custom CSS. See the Modifier CSS Classes section above for more details and examples.

Option 2: Use custom CSS. You can hide the icon with CSS by targeting the .edac-nww-external-link-icon class.

Hide all icons like this:

.edac-nww-external-link-icon {
   display: none;
}

Narrow your targeting to hide it only on certain elements. For example, if you want to hide it only on your social media icons and each social media icon has a class of .social-follow-link, you would hide it like this:

.social-follow-link .edac-nww-external-link-icon {
   display: none;
}

You can get the right CSS class for targeting by inspecting elements in your browser’s developer tools.

How do I hide the tooltip?

If you want to suppress the tooltip for a specific section of your site — for example, because that section already provides its own new-window warning — add the class edac-nww-no-tooltip to the element wrapping the relevant links. The icon and aria-label will still be applied to those links.

See the Modifier CSS Classes section above for full details and examples.

Is this the same as your Accessibility New Window Warnings plugin?

Yes, the functionality of this fix is the same as the Accessibility New Window Warnings plugin. You do not need both plugins active.

Note: Enhancements are built in Accessibility Checker before they are added in Accessibility New Window Warnings, which means that the code may not be identical between the two plugins. There may be a delay between releases. It is recommended to use the fix in Accessibility Checker rather than the standalone plugin to ensure you always have the most up-to-date version.

Impact on Accessibility

Web Content Accessibility Guidelines (WCAG) 3.2 Predictable specifies that web pages should appear and operate in predictable ways. Warning users when a link opens in a new tab or window helps set clear expectations and prevents disorientation.

This fix supports cognitive accessibility by reducing surprise. It makes it easier for blind users to return to previous pages — with the auditory announcement, they will know that to return to the previous page, they need to close the new window or tab rather than use their browser’s back button.

Providing the warning also improves transparency and trust for all visitors. This fix is inspired by Techniques for WCAG 2.0 G201: Giving users advanced warning when opening a new window.

Associated Checks

The following checks in Accessibility Checker are associated with this fix:

Link Opens New Window or Tab

Changelog

Show/Hide Change Log

March 2026

  • Added a Modifier CSS Classes section documenting the edac-nww-no-icon and edac-nww-no-tooltip classes.
  • Updated the “How do I hide the icon?” FAQ to reference the modifier class as the recommended approach alongside the existing CSS method.
  • Added a new “How do I hide the tooltip?” FAQ entry.

October 24, 2025

  • Marked up all code as inline code.
  • Clarified the Visual Warnings section to include more text descriptions of the warnings and not rely as heavily on screenshots.
  • Added explanation that the tooltip complies with WCAG 1.4.13 Content on Hover or Focus.
  • Added a section on the auditory warning to make it clear that screen reader users will hear something.
  • Added examples of a text link and a linked image into the page with visible code.
  • Added a note that this fix works in languages other than English.
  • Added a FAQ section with information on how to hide the icon.
  • Clarified Impact on Accessibility section, including links to relevant WCAG docs.

Primary Sidebar

Equalize Digital Accessibility Checker. Start making your WordPress Website Accessible Today. Get Accessibility Checker Now.

Frequently Asked Questions

  • How to Install & Activate Accessibility Checker
  • Getting Started Quick Guide
  • Why Do We Say 100% Passed Checks, Not 100% Accessible?
  • Manual Accessibility Testing: How You Can Check Website Accessibility
  • Dismissing and Reopening Accessibility Issues
  • What to do if There are Accessibility Problems in Your Theme
  • What to do if a Plugin You’re Using has Accessibility Problems
  • How to Get Support for Accessibility Checker
  • Can I Hire Equalize Digital to Fix Accessibility Issues on My Website?
  • Additional Resources for Learning About Accessibility
  • How to Test Accessibility Checker for Conflicts with Themes or Plugins
  • What Does “Unlimited Dev Sites” mean?
  • Is there an Accessibility Conformance Report (ACR) or VPAT available for Accessibility Checker?
  • How does Accessibility Checker align with WCAG?
  • What to do if Accessibility Checker is not Scanning Your Site
  • Known Conflicts
  • Ensuring Accessibility Checker Fixes Work with JavaScript Optimization Plugins
  • How to Use Accessibility Checker to Scan Archive Pages
  • Using the Screen Reader Only Text Format in the Block Editor

Rule Documentation

  • A Slider is Present
  • A Video is Present
  • Ambiguous Anchor Text
  • ARIA Hidden
  • Blinking or Scrolling Content
  • Broken ARIA Reference
  • Broken Skip or Anchor Link
  • Duplicate Alternative Text
  • Duplicate Form Label
  • Empty Button
  • Empty Heading Tag
  • Empty Link
  • Empty or Missing Form Label
  • Empty or Missing Table Header
  • Empty Paragraph Tag
  • iFrame Missing Title
  • Image Animated GIF
  • Image Empty Alternative Text
  • Image Long Alternative Text
  • Image Map Missing Alternative Text
  • Image Missing Alternative Text
  • Improper Use of Link
  • Incorrect Heading Order
  • Insufficient Color Contrast
  • Link Opens New Window or Tab
  • Link to MS Office File
  • Link to Non-HTML File
  • Link to PDF
  • Linked Image Missing or Empty Alternative Text
  • Long Description Invalid
  • Low-quality Alternative Text
  • Missing Language Declaration
  • Missing Subheadings
  • Missing Title
  • Missing Transcript
  • Possible Heading
  • Readability & Simplified Summary
  • Tab Order Modified
  • Text Justified
  • Text Too Small
  • Underlined Text
  • Zooming and Scaling Disabled

Easier, Faster Accessibility Testing

Equalize Digital Accessibility Checker gives you real-time accessibility feedback in the WordPress editor. Learn accessibility and make fixes earlier in the dev and content creation process. Full-site accessibility scanning without the per page fees.

Get Accessibility Checker

Footer

Equalize Digital Websites for Everyone

Your WordPress accessibility team. Accessibility plugins, rapid audits, and consulting to help you make your website usable by people of all abilities.

  • Facebook
  • GitHub
  • LinkedIn
  • YouTube

Company

  • About Equalize Digital
  • WordPress Accessibility Meetup
  • Accessibility Statement
  • Blog
  • Events
  • Contact Us

Services

  • Accessibility Audits
  • User Testing
  • Remediation
  • Ongoing Monitoring
  • VPAT & ACR Preparation
  • Accessibility Training
  • For Agencies
  • Website Development

Accessibility Checker

  • Features
  • Pricing
  • Documentation
  • How to Get Support
  • My Account
  • Affiliate Dashboard
  • Become an Affiliate

© 2026 Equalize Digital · Privacy Policy · Service Terms · Software Terms · Data Terms

International Association of Accessibility Professionals member