[WordPress] 外掛分享: Page Specific Scripts

首頁外掛目錄 › Page Specific Scripts
400+
安裝啟用
★★★★★
5/5 分(1 則評價)
2020 天前
最後更新
問題解決
WordPress 3.1+ v1.0 上架:2019-07-02

內容簡介

此外掛可以幫助您僅在特定頁面和文章上增加 jQuery 和 JavaScript 代碼片段。

它也同樣適用於所有類型的自訂文章類型。每個添加到頁面或文章的腳本,只會在該特定文章上運行。

編輯頁面時,可以將腳本添加到元框中。

此外掛使用 wp_head() 行為鉤子,將代碼添加到頁面的標頭中。

大多數佈景主題使用此鉤子,因此它適用於大多數佈景主題。

已經測試過,並且與 Gutenberg 兼容。

文件和支援

您可以在此外掛網站上找到更多有關此外掛的資訊。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon