Performancing Metrics

Wordpress Tutorial: Opening Links in New Windows

While we’re on the subject of opening links in new windows here is another option allowing the target attribute to be changed only for specified links. This hack allows you to open links in a new window using Quick Tags.

A few points of this hack are:

  1. Requires the editing of only one file quicktags.js.
  2. It is integrated into the quicktags toolbar.
  3. Doesn’t require the editing of your theme files and works across all themes. If you get a new theme, you wouldn’t need to reapply the hack.
  4. You have the flexibility of choosing which links you want to apply the target attribute.
  5. You can choose the value of the target while inserting the link.

Categories: WordPress Hacks



Comments

  1. Ajay DSouza ) says: 4/4/2005

    Thanks for posting a link to the hack.

    Ajay

  2. Rori says: 4/4/2005

    Right ON!