What is rel=”noopener” in WordPress? If you write a text and add a link that opens in a new window, then WordPress automatically adds noopener to your link. Below we will see what rel=”noopener” is that WordPress adds and how it affects your website.
noopener is an HTML attribute that is added to all WordPress links that are selected to open in a new browser tab. It is also accompanied by rel=”noreferrer”.
These features were added to WordPress to address a security hole that malicious JavaScript websites can exploit.
There are some JavaScripts that allow a tab that opens to obtain certain information. If you connect to a website that contains malicious code, then that page, using the JavaScript property window.opener, can change the home page (of your website) to steal information and add malicious code.
Adding rel=”noopener” prevents the new tab from taking advantage of this JavaScript feature. Similarly, the rel=”noreferrer” attribute prevents the referring page information from being passed to the new tab.
Does it affect your SEO?
Although the rel=”noopener” attribute improves WordPress security, many believe that it affects SEO.
It's a myth.
The noopener feature does not appear to affect your WordPress site's SEO or overall WordPress performance.
What is the difference between noopener and nofollow?
If you’re confusing rel=”noopener” with rel=”nofollow”, read on.
The noopener attribute improves WordPress security by blocking information leakage.
On the other hand, the nofollow attribute prevents your website from passing SEO link juice to the referring page. It essentially “tells” the Google bot that indexes your page not to follow the link.
Search engines now reportedly "obey" the nofollow attribute, but do not take into account the noopener.
How to disable rel=”noopener” in WordPress?
You don't need to disable the rel=”noopener” tag from your page links. It is needed as an extra security measure and has no impact on your page or SEO.
However, if you need to remove it, then you will need to disable the WordPress Gutenberg editor and use the old classic editor. After that, you will need to add the following code to the functions.php file of the theme you are using.
Removing noopener is not recommended.
add_filter('tiny_mce_before_init','iguru_disable_noopener'); function iguru_disable_noopener( $mceInit ) { $mceInit['allow_unsafe_link_target']=true; return $mceInit; }____________________________
- WordPress Learn the history of the most popular CMS
- All about Usenet: Is it worth using? Is it legal?
- Blog and website: what's the difference?
