[WordPress] 外掛分享: Multisite Custom CSS

首頁外掛目錄 › Multisite Custom CSS
100+
安裝啟用
★★★★★
5/5 分(8 則評價)
638 天前
最後更新
問題解決
WordPress 4.7+ v1.0 上架:2016-12-06

內容簡介

WordPress核心為自訂CSS功能提供了定制化選項,僅適用於當前的佈景主題;您可以在不同佈景主題之間自由切換,並保留每個佈景主題的額外CSS。這在多站點網絡上尤其有用,因為使用子佈景主題為每個網站保存自定義樣式通常是不切實際的。不幸的是,由於未經信任的CSS可能導致安全問題,多站點網絡上的網站管理員無法默認訪問自訂CSS。

此外掛將 edit_css 能力映射到 edit_theme_options 上,從而信任網站管理員進行未經篩選的CSS審核,並為其提供核心定制CSS功能。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Multisite Custom CSS」→ 直接安裝(推薦)

原文外掛簡介

WordPress core provides custom CSS functionality in the customizer that’s specific to the current theme; you can switch themes freely with each theme’s additional CSS remaining in place. This is particularly useful on multisite networks, where it’s often impractical to use child themes to save customizations for each site. Unfortunately, custom CSS is not visible to site admins on multisite networks by default because they are not trusted with unfiltered CSS.
This plugin gives site admins access to the core custom CSS feature by mapping the edit_css capability to edit_theme_options, thereby trusting site admins with unfiltered CSS.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon