Opening external links in a new tab or window is often quite useful. It allows users to go investigate content you recommend, without them losing their place in what they were reading on your site.
To open links in a new window/tab, you need to add the html attribute of target="_blank" to the link. In WordPress, you can manually add it by selecting the "Open link in new window/tab" option when adding a new link in either the visual or the text/html editor.
As with most all things WordPress, you can also automate things with a plugin. With WP External Links for instance, you can not only manage where your external links open, but you can also configure additional features like:
- Add nofollow to links
- Set link title and icon
- Set classes to add your own styling
- Exclude certain links
First, install and activate the plugin, then go to the settings page and select the features you want to use and you’re done. WP External Links will now automatically open all external links in new windows/tabs the way you want.
What Do You Think?
Found a better method, or plugin, to open external links in a new tab/window? We’d love to hear about it. Drop us a quick note in the comments section below. And, please, share this article if you found it useful. We’d really appreciate it.
- How to Embed Your Instagram Video - Mashable
- Security Flaws Found in 20 Percent of Popular WordPress Plugins - eSecurity Planet
- Popular WordPress Plug-ins Vulnerable to Attack: Checkmarx Research - eWeek
- Automattic Acquires Poster, a Mobile WordPress Client - AllThingsD
- Two Crisis Management Tips WordPress Founder Matt Mullenweg Learned the Hard Way - LinkedIn