這個外掛並未在最新的 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 reply
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 訂閱開發記錄