How to open External links in New window in WordPress

How to open External links in New tab or window in WordPress

If you are wondering how to make all or specific external links from your website to open in a new tab, you have come to the right place. We are going to achieve this functionality in your WordPress site by making use of the Open external links in a new window plugin.

Unlike other plugins promising similar functionality, this plugin produces code which is strictly compliant with XHTML and is also optimized for search engines. This is achieved by making use of JavaScript’s window.open()- function.

Most of the other plugins perform the same operation in a non XHTML compliant way by altering the target parameter. Moreover, all the links are handled at the client-side instead of server-side. This difference in how the links are managed allows the search engine crawlers to follow the links properly. And in case the browser does not support JavaScript, the plugin simply remains inactive instead of throwing up errors.

How to open external links in a new window?

Step 1 – Install and activate the Open external links in a new window (by Kristian Risager Larsen) plugin from the WordPress.org plugin repository.

Step 2 – Once the plugin is activated, it works out of the box and no further configuration is needed.

Step 3 – But in case you want to perform additional configuration, you can do so by opening the Settings–>External Links page.

Open external links in new tab settings

Step 4 – If you add any parameters in the above screen, don’t forget to save changes using the button present at the bottom. That’s it – now the plugin is fully configured.

Thus I hope this article helped you in learning how open external (outbound) links in new tab in WordPress. If you liked this post, you may also want to see my post on how to add Facebook-like reactions feature to posts in WordPress.

Advertisements

3 thoughts on “How to open External links in New window in WordPress

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s