[WordPress] 外掛分享: Per Post Scripts & Styles

首頁外掛目錄 › Per Post Scripts & Styles
90+
安裝啟用
★★★★
4.8/5 分(6 則評價)
4923 天前
最後更新
問題解決
WordPress 3.0+ v1.2 上架:2011-09-26

內容簡介

此外掛可以安全地為單獨的文章、頁面和自訂文章類型添加特定的 JavaScript 和 CSS 樣式表。

功能:

使用%HOME_URL%、%SITE_URL%和%THEME_URL%變數生成動態 URL
支援腳本依賴和檢查腳本重複性
可以選擇在 header 或 footer載入腳本
將腳本附加到文章、頁面和自訂文章類型
在單獨文章頁面以及這些文章所在的所有其他頁面上載入附加的腳本和樣式表

完整的文件請參見philipwalton.com

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Per Post Scripts & Styles」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Properly and safely add specific Javascript and CSS stylesheets to single posts, pages, and custom post types.
Features:

Dynamic URLs with %HOME_URL%, %SITE_URL%, and %THEME_URL% variables
Script dependency support as well as script duplication checking
The option to load scripts in either the header and footer
Attach scripts to posts, pages, and custom post types
Load attached scripts and styles not just on that post’s page, but on the home page or any other page where that post is displayed.

For complete documentation, visit philipwalton.com

延伸相關外掛

文章
Filter
Apply Filters
Mastodon