External Links in New Window / New Tab

Omschrijving

Opens external links in a new tab or a or new window. You can set URLs that should either be forced to open in a new window or ignored.

The plugin produces XHTML Strict compliant code and is search engine optimized (SEO).
This is done using JavaScript’s window.open()-function. It adds only a few lines of vanilla JavaScript to the page, and does not require any external libraries like jQuery.

Most other plugins perform a hack by altering the target parameter (i.e. <a href="http://somewhere.example" target="_blank">). That method is not XHTML Strict compliant.
This plugin handles the links client-side, which lets search engines follow the links properly. Also, if a browser does not support JavaScript, the plugin is simply inactive, and does not result in any errors.

Credits
Inspired by the Zap_NewWindow plugin by Tom Köhler.
The banner is a photo by Monja Da Riva.

Translations
Danish by Kristian Risager Larsen
Dutch by Paul Staring
Lithuanian by Vincent G
Other translations will be appreciated!

Known bugs
The plugin conflicts with other plugins that change the links’ `onClickĀ“ attribute.

Original developer
Kristian Risager Larsen – kezze.dk

Installatie

  1. Copy the plugin to /wp-content/plugins/
  2. Activeer de plugin.
  3. Eventually, change the settings in Settings->External Links.

Beoordelingen

4 juni 2020
I looked for a solution for a week and in 30 minutes you solved. Thank you again
15 mei 2020
Great plugin, great support! This one of my "must use" plugins, I install it always. Personally I don't when you click a link in a site and does not open in a new tab, to me every external link goes to a new tab. Simply.
30 maart 2020
WTF is "JS regular expression" and how do you separate them?? One star just because you don't tell normal people (in other words non-programmers) if you have to seperate vimeo.com from youtube.com with space, comma, colon, semicolon or what? I tried those four and they don't work. The plugin works, but only with ONE "JS regular expression" unless you explain in normal human language!
Lees alle 57 beoordelingen

Bijdragers & ontwikkelaars

“External Links in New Window / New Tab” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“External Links in New Window / New Tab” is vertaald in 2 talen. Dank voor de vertalers voor hun bijdragen.

Vertaal “External Links in New Window / New Tab” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

1.4

  • 2019-08-26
  • WebFactory took over development
  • minor fixes
  • 40,000 installs; 178,750 downloads

1.3.3

Verified compatibility with WordPress 5.0

1.3.2

Updated: Danish translation

1.3.1

Verified compatibility with WordPress 4.0
Added: Plugin logo for WordPress 4.0
Added: Dutch translation.

1.3

Added: Possibility to force and ignore user-defined strings in URLs. This feature has been requested.
Added: Lithuanian and Danish translation.

1.2

Added: Translation-ready.

1.1.1

Fixed: Deprecation warning (Thanks to boo1865)

1.1.0

Changed: Better practice for opening links. The plugin now uses the onClick-attribute instead of writing JavaScript directly into the href-attribute. This enables users to right-click the link and open in a new window/tab, save the target etc.

1.0.1

Fixed: Removes target attribute from links instead of setting the attribute to null. (Thanks to crashnet)

1.0

Fixed: Credits to Tom Köhler (Charset).
Fixed: Links.

0.9

Initiƫle versie.