@benjamin_r that worked for me too! thank you. it is weird though. mine worked no problem for months. all linked to pages were opening up in new windows. then one day it just stopped. i fealt like it had something to do with wordpress upgrade. i copy and pasted the above code and now it works again.
Hi. I have been having the same problem as described above but I can’t seem to get rid of that space in the 1st a href. I have tried manual editing within WordPress and copying and pasting. I have also tried the same thing via my host cpanel but i still have that space and the link is still opening in the same window. Any suggestions?