Skip to content

WordPress: Replace target=”blank”

by Chris Wiegman on February 27th, 2010
wordpress-w3c-logo

So after getting tired of not being able to use the external link selection in the built-in WordPress TinyMCE I decided to do something about it. Here’s a little WordPress Plugin that will scan the text of your site and replace any instance of target=”_blank” with class=”target_blank”. It then uses a small jquery script to open the link in a new window or tab as the author intended.

You can download the plugin here replace-target.zip

For the latest download, please check out my project page at http://www.chriswiegman.com/wordpress-replace-target-plugin/




Related posts

Comments are closed.