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.
Steps to Open All External Links in a New Window on WordPress
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.
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.
Conclusion
Thus I hope this article helped you in learning how to open external (outbound) links in a 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.
But isn’t that a setting on WP already? I use it all the time when I linking something in my post. 😕
Actually, I’m not referring to WordPress.com but the software powering the site which can be used separately by hosting it elsewhere too. You can grab it from WordPress.org. Feeling confused? Have a look at WordPress.com vs WordPress.org for a better understanding.
Aaaah I see. Yes I must have mistaken it. Thanks 😊
This plugin will not work on my affiliate / external links that I have already in place. Can’t see that I need to do anything in setup except Activate, and it’s activated.
Any suggestions?
Thank you!
Hey Kimberly, it’s should work just fine out of the box. If it isn’t working for you, try clearing your cache files and test the site in an incognito window or a new browser. Also make sure JavaScript is enabled in your browser.