Thanks getzinger! I looked around online for quite a while trying to find a solution until I found yours.
Here is what I did:
1) Installed the Link Indication plugin. See https://www.sw-guide.de/wordpress/link-indication-plugin/ Make sure to follow their instructions as it is a bit more complicated than just adding it to the plugins directory and activating from the Plugins manager. However you do NOT have to add anything to style.css to get the nofollow stuff to work.
2) edit link-indication.php as follows:
The line numbers below assume that the following line is line #182 as it is in my version:
if (substr($linktype, 0, 8) == ‘external’) {
After line 187 add the following:
$targetblank = ‘rel=”nofollow”‘;
Note that this will overwrite the target=”_blank” so if you really want that option add the line above after line 182 and change line 186 to
$targetblank = ‘target=”_blank”” rel=”nofollow”‘;
You can see it in action at https://www.blogging-baseball.com .