Linux 软件免费装

Javascript Per Page

开发者 jkohlbach
更新时间 2015年4月24日 14:08
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 4.2

标签

javascript ie ios javascript per page ie javascript ios javascript post javascript page javascript category javascript tag javascript

下载

详情介绍:

Javascript Per Page adds a custom javascript file to all of the pages on your WordPress install with options to check for the existence of the javascript file before adding. Allows for adding IE specific javascript all the way back to version 6. Just enable in the plugin options and add the javascript files to your theme directory. Javascript Per Page also allows adding of an iOS specific javascript file. Simply enable in the plugin options and add the javascript to your theme directory. This plugin supports use with custom post types, category, and tag pages.

安装:

  1. Upload the plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
To use this plugin, just add javascript files in the following formats to your theme's base directory or a "js" subdirectory inside your theme's base directory: NOTE: You can place your custom JS files in either the base directory of your theme, or in a "js" subdirectory inside your theme, but try to be consistent with where you place them.

升级注意事项:

N/A

常见问题:

How do I activate IE javascript files?

To activate javascript files enable the option in the plugin options and create js files with the following naming convention: ie.js (overrides for all IE versions), ie8.js (overrides for IE 8 and below), ie7.js (overrides for IE 7 and below), ie6.js (overrides for IE 6 and below).

How do I get Javascript Per Page to check for the files first before trying to include them?

Easy, just tick the option under the Javascript Per Page admin options under found under the Settings menu.

How do I enable an iOS javascript?

To activate an iOS specific javascript create ios.js and place it in your theme's base directory or js subdirectory inside your theme's base directory. You will also need to enable the checkbox in the plugin options.

更新日志: