How To Open All Links In New Window In WordPress?

Posted by

Hi,

When I was adding posts I was doing manually setting for each post to open it in new window. After that I have searched how can I set it to default for the blog to open all links in new window. Finally, I have found the solution which is too simple and share it here:

1) Open header.php file of your wordpress theme.
2) Add this code in section of the blog:

3) Save the changes.

That’s it!

Thanks,

Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.