Support » Plugin: WP External Links (nofollow new tab seo) » exclusions for target

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author FineWebdev


    Hello Nata-lee,

    The link (of your example) contains a target="_none". This is not set by the WPEL plugin. The plugin removes this attribute of the link, because it does not work in browsers (and it will open in a new tab).

    Maybe the target="_none" is set by another plugin? (fancybox, phpbb)

    A workaround could be by using the filter (with a very high priority number):

    function external_link_filter($created_link, $original_link, $label, $attrs = array()) {
    	// remove target="_none"
    	return preg_replace('/\s*target\s*=\s*(["\'])_none\1/', '', $created_link);
    add_filter('wpel_external_link', 'external_link_filter', <strong>1000000</strong>, 4);

    Thank you for reply.
    target=”_none” was a part of phpbb bbcode, I cut it off. But it didn’t help and I was upset until I changed wp-external-links to open external links in _none and then change it back to _blank. And I got it work. It was a kind of glitch, I think.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘exclusions for target’ is closed to new replies.