[WordPress] 外掛分享: Insert JavaScript and CSS

首頁外掛目錄 › Insert JavaScript and CSS
400+
安裝啟用
★★★★
4.1/5 分(10 則評價)
4984 天前
最後更新
問題解決
WordPress 3.0+ v0.2 上架:2012-06-21

內容簡介

此外掛可輕鬆地將自訂 JavaScript 或 CSS 加入到單一貼文或頁面內。

啟用後,貼文編輯頁面會新增一個圖示,位置與您用於新增媒體至貼文的圖示相似。
按下新圖示後,會彈出一個畫面,您可在此插入與目前貼文一同包含的 JavaScript 與 CSS。

在 JavaScript 頁籤中輸入的內容將插入到您的網頁 <head> 區段中。同理,CSS 頁籤亦是如此。這讓您能將任意 JavaScript 與 CSS 插入到任何貼文或頁面內,而不必載入所有頁面。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Insert JavaScript and CSS」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Easily add custom JavaScript or CSS to a single post or page.
When activated, a new icon is added to the post edit page near the icon you use
to add media to a post. Clicking the new icon brings up a screen where you can
insert JavaScript and CSS that will be included with the current post.
Anything entered into the text field on the JavaScript tab will be inserted into
the section of your web page. Same is true of the CSS tab. This allows
you to insert arbitrary JavaScript and CSS into any post or page you would
like without having to resort to loading it on all pages.

延伸相關外掛

文章
Filter
Mastodon