Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
After the new update wordpress adds the noopener and noreferrer tags to links that open in a new tab. Is this a glitch? Will this affect affiliate links? Can anyone shed some light on this.
target="_blank"
window.opener.location
// Stop TinyMCE from adding "noopener noreferrer" to external links with target="blank"
add_filter('tiny_mce_before_init','tinymce_allow_unsafe_link_target');
function tinymce_allow_unsafe_link_target( $mceInit ) {
$mceInit['allow_unsafe_link_target']=true;
return $mceInit;
}
So will affiliate links with "noopener noreferrer" not work at all?
I noticed that the update also added the new tags to all existing links on my site with target="_blank", it's going to take a while to remove every single instance.
I disabled the visual tab a while ago now. Probably why I wasn't effected eitherI'm only seeing this added to my posts when I use the "visual" tab and not the "text" tab in WordPress.
I'm only seeing this added to my posts when I use the "visual" tab and not the "text" tab in WordPress.
^ Edit: Yes, it's a problem. Here's the solution for your functions.php:
Code:// Stop TinyMCE from adding "noopener noreferrer" to external links with target="blank" add_filter('tiny_mce_before_init','tinymce_allow_unsafe_link_target'); function tinymce_allow_unsafe_link_target( $mceInit ) { $mceInit['allow_unsafe_link_target']=true; return $mceInit; }
TinyMCE is the open source text editor Wordpress uses. This stops it from adding this code.
I suggest doing a Wordpress search inside the dashboard for the phrase "noopener noreferrer" to find any that remain and remove them.
@CCarter is it possible to build a flat file magazine site? Cuz this shit is ridiculous now
Thanks, @Ryuzaki for providing the snippet. I just started noticing these noopener noreferrer links yesterday as well. Thought it was a new theme I was working with at first.^ Edit: Yes, it's a problem. Here's the solution for your functions.php:
Let me get this right - if I have an Amazon affiliate site, and all of the affiliate links on the site open in new window, I could lose the commission on purchases made through those links?
You guys are all up in arms about WordPress, but this code has been in TinyMCE since Nov 2016.
Also, the code is on FaceBook, Instagram, and Twitter too, so if you say you were loosing money the blame is on your networks who had to know this code was implemented.
In short, don't open your site to BS, just get your networks off their ass to fix their referral link systems, I'm sure you're making them enough money to be worth the effort. Unless of course, they've known that these sites have been using those ref's since Nov 2016 and have been cashing in on your hard work.
pretty much every HTTPS site
Of course, it is... if you're willing to sacrifice some of the easy interface stuff. What are your requirements? What would be your dealbreakers?
http://www.fitrated.com/