rel=noopener in WordPress
rel=”noopener” in WordPress

Have you been wondering what rel="noopener" means in ? Well, let's discuss a little about in WordPress.

When you add a link that , WordPress will automatically add the rel="noopener" attribute to the link.

In this article, we will explain what rel="noopener" means in WordPress and how it affects your website.

READ ALSO: How to Install Microsoft Clarity Analytics in WordPress

What Is rel=noopener in WordPress?

When you add links to your WordPress website, you can use HTML attributes to control what happens when you click the link.

For example, when you create a link, there is a toggle switch that allows you to open it in a new tab.

rel=”noopener” in WordPress

The HTML code generated by WordPress for this link looks like this:

external link

Notice that some HTML attributes have been added to the link, rel="noopener" and rel="noreferrer". These attributes are added to address a security vulnerability.

The problem is that JavaScript code can be used to allow a new tab to get control of its referring window. If you link to an external website affected by the malicious code, then that website can use the window.opener property in JavaScript to change the original page (your website) to steal information and spread malicious code.

WordPress adds rel="noopener" to prevent the new tab from taking advantage of this JavaScript feature. Similarly, the rel="noreferrer" attribute prevents passing the referrer information onto the new tab.

READ ALSO: How to Embed Facebook Albums in WordPress

How Does rel=”noopener” Affect Your WordPress SEO?

The answer is that It doesn't.

Even though the rel="noopener" attribute improves WordPress security, some users avoid using it because they think it will impact their WordPress SEO.

But that's just a myth.

It has no impact on your site's rankings or your overall WordPress performance.

What's the Difference Between “noopener” and “nofollow”?

It's easy to confuse rel="noopener" with rel="nofollow". However, they are completely separate attributes.

The noopener attribute prevents your website from cross-site hacking and improves WordPress security.

On the other hand, the nofollow attribute prevents your website from passing on SEO link juice to the linked website.

Search engines look for and consider the nofollow attribute when following a link on your website. However, they do not give any consideration to the noopener tag.

By default, WordPress does not allow you to add nofollow to your external links. If you want to add nofollow in WordPress, then you will need to use a plugin.

READ ALSO: How to Eliminate Render-Blocking Resources From Your WordPress Website

The rel="noreferrer" does not affect affiliate links in WordPress. Some users believe that it does because rel="noreferrer" prevents the referrer information from passing to the new tab.

However, most affiliate programs provide you with a unique URL that has your affiliate ID. This means your affiliate ID is passed along as a URL parameter for the other website to track.

Secondly, most affiliate marketers use a link cloaking plugin for their affiliate links.

With link cloaking, the affiliate link that your users click on is actually your website's own URL, which then redirects users to the destination URL.

How Do You Disable rel=”noopener” in WordPress?

There is no need to remove rel="noopener" from links on your website. It is good for your website's security and has no performance or SEO impact on your website.

However, if you must remove it, then you will have to disable the Gutenberg block editor in WordPress and use the old classic editor.

That's because if you remove rel="noopener" from the link manually, the block editor will automatically add it back in to keep your website safe.

Once the block editor is disabled, you will need to add a code snippet to your theme's functions.php file or to the WPCode plugin (recommended). You can learn use the WPCode Free Plugin in our guide on how to easily add custom code in WordPress.

Simply copy the following code into a new PHP snippet:

add_filter('tiny_mce_before_init','wpb_disable_noopener');
function wpb_disable_noopener( $mceInit ) {
    $mceInit['allow_unsafe_link_target']=true;
    return $mceInit;
}
rel=”noopener” in WordPress
rel=”noopener” in WordPress

sure you change the ‘Active' toggle on and then click the ‘Save Snippet' button.

This will stop WordPress from adding rel="noopener" to new links. You will also need to manually edit any old links to remove the attribute.

Want even more control over which rel attributes get added to your links in WordPress? We recommend using the AIOSEO plugin because it lets you add title, nofollow, and other link attributes right inside the WordPress editor.

rel=”noopener” in WordPress
rel=”noopener” in WordPress

We hope this article helped you learn about rel="noopener" in WordPress. You may also want to learn how to get a free email domain or see our list of tips to speed up WordPress performance.

Does this article meet your immediate needs? If yes, leave us a 5-star rating in the Review Box below. However, if not, leave a comment in the comment box to express your concern or ask a question, and we will get back to you as soon as possible.

Remember to Share this Article with your friends on social media!! Doing this helps us improve and grow our channel and also enables us to help more people online. 
Thank You For Sharing!!!
One-Time
Monthly
Yearly

Make a one-time donation to support us

Make a monthly donation to support us

Make a yearly donation to support us

Choose an amount

$5.00
$15.00
$100.00
$5.00
$15.00
$100.00
$5.00
$15.00
$100.00

Or enter a custom amount

$

Support us with Your Contributions!!!

Your contribution is appreciated.

Your contribution is appreciated.

DonateDonate monthlyDonate yearly

Discover more from Detailed Guide Blog

Subscribe to get the latest posts sent to your email.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You May Also Like
Solar Companies In Vermont

15 Best Solar Companies In Vermont

Let’s take a closer look at the best Solar Companies In Vermont.…
Make Money Fast

How to Make Money Fast: Top 10 Real Ways to Make Money Quickly

Are you looking to make extra side cash, make more money to…
physician assistant schools in Alabama

10 Best Physician Assistant Schools In Alabama

While we list the 10 best physician assistant schools in Alabama; In…