10+
安裝啟用
★★★★★
5/5 分(1 則評價)
3960 天前
最後更新
—
問題解決
WordPress 3.1+ v1.3 上架:2012-02-24
內容簡介
這個外掛在管理模式下會向 <body> 標籤增加 class,
讓你的 CSS 可以知道你目前所在的頁面。
例如,如果你在檢視所有文章的清單頁面,你會得到這個額外的 class:
edit-list-post
當你在編輯一篇文章時,會得到類似這樣的 class:
edit-page-post
另外,對於自訂文章,例如 "電影",你會看到以下其中一個:
edit-list-movie
或:
edit-page-movie
這讓你可以撰寫自定義的 CSS 和 JS 來與 WordPress 中這些不同的編輯頁面互動。
如果有任何問題、建議或想法,請隨時讓我知道,
Atg
外掛標籤
開發者團隊
⬇ 下載最新版 (v1.3) 或搜尋安裝
① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Add Custom Post Type Slugs to Admin Body Class」→ 直接安裝(推薦)
② 後台搜尋「Add Custom Post Type Slugs to Admin Body Class」→ 直接安裝(推薦)
原文外掛簡介
When in Admin mode, this plug-in adds classes to the
tag to letyour CSS know where you are.
For example, if you are viewing the list of all your Posts, you would get this additional class:
edit-list-post
And, when you are editing a Post, something like this:
edit-page-post
Alternatively, for custom posts, for example “movie”, you would see either:
edit-list-movie
or:
edit-page-movie
This allows you to write custom CSS and JS to interact with these varying edit pages within WP.
Please let me know if you have any questions/suggestions/thoughts,
Atg
