Technology Advice by Ryan Taylor Adams

External Links WordPress Plugin

December 13th, 2007 · No Comments · Printer Friendly Version


While I make an effort to update older posts to keep them relevant and technically accurate, the rapidly changing nature of the tech world makes it possible that the content of this post may no longer be relevant, current, or even accurate. Additionally, because of this post's age, adding new comments has been disabled. If you would like to contribute new information to this post, or have questions pertaining to this post, please use the Contact Form.

It seems that opening links in new windows has become a frowned upon action in the web design community. Using target=”_blank” is going the way of poorly animated GIFs and polyphonic background music. It’s understandable, as forcing yet another browser window on a user can be almost as annoying as the latter two. However, there are stillĀ situations that merit the use of the target=”_blank” tag, and external links on a blog seem like a pretty good candidate.

This plugin automatically adds a target=”_blank” to any link in your posts or comments that points to somewhere outside of your domain. For example, you’ll notice on this site, any link that doesn’t point to //ryantadams.com opens in a new window.

The plugin ignores sub domains and the inclusion/lack of a “www”, so links to anything.yourdomain.com will open in the same window.

You can download the plugin here: external-links.zip