What is rel = ”noopener” in WordPress? If you write text and add a link that opens in a new window, then WordPress automatically adds the noopener to your link. Below we will see what is rel = "noopener" that WordPress adds and how it affects your website.
noopener is an HTML attribute added to all WordPress links that are selected to open in a new tab of the browser. It is also accompanied by rel=”noreferrer”.
These features were added to WordPress to address a security loophole that can be exploited by malicious actors websites with JavaScript.
There are some JavaScript that allow a tab that opens to get some information. If you log in to a website that contains malicious code, then this page, using the window.opener property of your JavaScript, can change your homepage (your site) 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 referral page information from being transferred to the new tab.
Affects Your SEO?
Although the rel=”noopener” attribute improves the better safety of WordPress, many believe it affects SEO.
It's a myth.
Η mode noopener doesn't seem to affect your WordPress site's SEO or overall WordPress performance.
What is the difference between noopener and nofollow?
If you confuse rel = ”noopener” with rel = ”nofollow”, read below.
The noopener feature improves WordPress security by blocking information leakage.
On the other hand, the nofollow feature prevents your site from passing SEO link juice to the referral page. It basically "tells" the Google bot that indexes your page not to follow the link.
The search engines now they reportedly "obey" the nofollow attribute, but ignore the noopener.
How to disable rel = ”noopener” in WordPress?
You do not need to disable the tag rel = ”noopener” from your page links. It is needed as extra security and has no effect on your page or SEO.
However, if you need to remove it, then you need to disable the WordPress Gutenberg Editor and use the old classic processor. After that, you will need to add the following code to the functions.php file of the theme you are using.
Removing the 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; }
____________________________
- WorPress Get to know the history of the most popular CMS
- All about Usenet: Worth to use? Is it legal?
- Blog and Website or Website: What's the Difference?