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

Open Files In New Window or Tab

描述

This plugin enqueues a simple jQuery script that looks for any anchor tag that has an href property to something with a file extension of 1-5 characters and makes it open in a new window or tab.

see script here

This means any link to a .pdf, .txt, .ppt, .doc, .xls, .xlst, etc will automatically have the property ‘target=”_blank”‘ added to it so it opens in a new window or browser tab.

安装

Upload the plugin files or install from the WordPress.org plugin repository.

e.g.

  1. Upload wp-open-files-new-window.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常见问题

What kind of links will this alter?

Any link that goes to a file

What does it do

Ex: This plugin would transform <a href="link-to-pdf.pdf">Open PDF</a> to <a href="link-to-pdf.pdf" target="_blank">Open PDF</a>

评价

此插件暂无评价。

贡献者及开发者

「Open Files In New Window or Tab」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0

  • First version released