這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Page Specific Scripts

外掛說明

This plugin helps you add jQuery and Javascript code snippets only on specific pages and posts.

It works with all types of custom post types as well. Each script added to a page or post, will run only on that specific post.

Scripts can be added in a meta box when editing a page.

This plugin uses the wp_head() action hook, and adds the code to the header of the page.

Most of the themes using this hook, so it works on most of the themes.

Tested & works with Gutenberg.

Docs & Support

You will find more information about the plugin at the plugin website

安裝方式

From your WordPress dashboard

Go to Dashboard > Plugins > Add New
Search for ‘Page Specific Scripts’
Click install and then Activate the plugin

From WordPress.org

Download the package from wordpress.org Plugin Directory
Unzip the files
Upload the unzipped files with FTP to the plugin directory in your wordpress installation
Go to Dashboard > Plugins to activate

常見問題集

What themes have this plugin been tested on?

This plugin has been tested and created on a test environment of the Divi theme with Gutenberg enabled. It also works on the WordPress Default themes.

使用者評論

2021 年 2 月 18 日 1 則留言
I was looking for a soultion for adding a JS conversion tag on a specific page withoot using Google Tag Manager (I was in a hurrry…). This plugin did the job! Thanks
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Page Specific Scripts〉的開發相關工作。

參與者

將〈Page Specific Scripts〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄