该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

External Links to New Window

描述

This plugin will solve the problem of manually changing all your external links to open in a new window by doing it automatically for you…for all external links in all posts and pages!

This plugin uses standard HTML and doesn’t introduce any more JavaScript into your already JavaScript heavy WordPress site. It also uses very minimal styling (CSS) to display a new window icon, which is embedded and not externally linked.

The display of the new window icon can be changed in the settings page and you can also add the rel="nofollow" attribute. Read more about rel="nofollow" on Wikipedia.

Updates to the plugin will be posted on the Etalented website as well as to the WordPress.org Plugin Directory.

Originally created by Christopher Ross and now authored by Etalented.

屏幕截图

  • Plugin settings
  • An example blog post with external link

安装

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->External Links screen to configure the plugin

常见问题

Do the external links have any CSS classes?

Yes. There are 2: thisismyurl_external to support sites that use the old version of the plugin; and external-links-new-window for new installations and for those that wish to upgrade.

Will it work for mobile?

Yes. The plugin uses HTML standards to that it works on mobile and desktop the same.

Will it open a new window or new tab?

That depends. It is down to the users settings in their browser whether a new window or new tab is opened. The default behaviour is for a new tab to open.

评价

此插件暂无评价。

贡献者及开发者

“External Links to New Window” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

2.0.4

  • code refactor
  • admin settings page re-design
  • new readme and contributing docs

2.0.3

  • code refactor
  • unit testing
  • admin settings page re-design
  • new external-link-new-window class for external links (whilst still supporting legacy class)
  • changing new window icon to CSS encoded for better performance

2.0.2

  • under new ownership

2.0.0

  • added new admin menu for easier management
  • removed footer comment
  • combined settings into single option
  • removed common file
  • added screenshot

1.1.1

  • lowered bandwidth of icon
  • CSS now only appearing when image included

1.1

  • added new WP menu