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.

安裝方式

  1. Take the easy route and install through the WordPress plugin installer, OR,
  2. Download the .zip file and upload the unzipped folder to the /wp-content/plugins/ directory
  3. Network Activate the plugin through the ‘Plugins’ menu in the network admin
  4. (Non-super) Admins can now manage their own CSS for the customizer for their site

常見問題集

Why is the plugin necessary?

Core can’t guarantee that CSS is properly sanitized when saving it in the database, and the associated capabilities for managing CSS are equivalent to those for posting unfiltered html. Site admins do not have this capability, so they can’t manage CSS as a result. However, in most cases this is an acceptable tradeoff for providing custom CSS to site admins, particularly on trusted networks (open networks are encouraged to take greater precautions and consider other solutions besides this plugin). Note that super admins can access custom CSS for any site on the network without this plugin.

Because this plugin only provides access to a core feature for more users, all feature requests and non-capability-related support questions apply to WordPress core and not this plugin.

使用者評論

2021 年 7 月 14 日
Works perfectly, allows admin to tweak their site's CSS. I found that this plugin doesn't need to be activated network-wide: you can let admins decide to activate it whether they need it. The custom CSS rules will stay even when the plugin is deactivated. They can always be edited by a network superuser.
2021 年 4 月 8 日
It solved the problem.
2019 年 3 月 13 日
Very useful. I support a great many sites and several of the individual site admins were keen to tweak the CSS. This is a great solution!
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Multisite Custom CSS〉的開發相關工作。

參與者

〈Multisite Custom CSS〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Multisite Custom CSS〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • First publicly available version of the plugin.
  • Requires WordPress 4.7+.