How to open external links in new tabs automatically on WordPress

My blog has a new home, please read the updated post instead.

When I switched my blogging platform from Medium to WordPress, I missed some of the smart features of Medium. For instance, whenever Medium detects any link that’s not from my blog i.e. an external link, it opens the link in a new tab upon being clicked. This means users don’t lose their place on your blog and you don’t shy them away.

In WordPress, you can only make links open in new tabs by manually selecting to do so for each link. This isn’t ideal as now I need to do that for every single link in all my articles for it to work. So I looked on the web for a solution and found one.

If you are using WordPress on a 3rd party hosting or using a Business plan like me, then all you need to do is install the plugin “External Links in New Window / New Tab” on your website and activate it. If you don’t know to install plugins, follow this simple guide.

Once you activate the plugin, you need to do absolutely nothing. It just works in the background and every time a user clicks on an external link, it will open those in new tabs. I chose this plugin over other solutions because it doesn’t require any external libraries to work, doesn’t break search engine crawling and doesn’t give any error if JavaScript is disabled on a user’s device.

Now I have the same feature as Medium on my WordPress blog. Happy blogging!

creative commons image Article published under the freedom-respecting Creative Commons Attribution-ShareAlike 4.0, minus any media file(s) credited independently.