Title: Multisite Custom CSS
Author: Nick Halsey
Published: <strong>2016 年 12 月 7 日</strong>
Last modified: 2024 年 7 月 13 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/multisite-custom-css/assets/icon.svg?rev=1554186)

# Multisite Custom CSS

 作者：[Nick Halsey](https://profiles.wordpress.org/celloexpressions/)

[下载](https://downloads.wordpress.org/plugin/multisite-custom-css.zip)

 * [详情](https://cn.wordpress.org/plugins/multisite-custom-css/#description)
 * [评价](https://cn.wordpress.org/plugins/multisite-custom-css/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/multisite-custom-css/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/multisite-custom-css/#developers)

 [支持](https://wordpress.org/support/plugin/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.

## 评价

![](https://secure.gravatar.com/avatar/043027b520781f370ea924fa0a7b0ddfa9f17e78c4418b49a16a921d9c44e8ee?
s=60&d=retro&r=g)

### 󠀁[Simple & Effective](https://wordpress.org/support/topic/simple-effective-217/)󠁿

 [Kevin](https://profiles.wordpress.org/kwickham/) 2025 年 1 月 15 日

Title says it all

![](https://secure.gravatar.com/avatar/f51ea997daeae1bbd175edce68612565856b66b23a58fa673f8688a3302d30af?
s=60&d=retro&r=g)

### 󠀁[Works, network-wide or site-by-site](https://wordpress.org/support/topic/works-network-wide-or-site-by-site/)󠁿

 [Bigue Nique](https://profiles.wordpress.org/biguenique/) 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.

![](https://secure.gravatar.com/avatar/23b683420b605a7a88dede765f79b2c21abfe4127f057ffc0e7edcceda5d6853?
s=60&d=retro&r=g)

### 󠀁[Great](https://wordpress.org/support/topic/great-13094/)󠁿

 [mae234](https://profiles.wordpress.org/mae234/) 2021 年 4 月 8 日

It solved the problem.

![](https://secure.gravatar.com/avatar/aedff7b05b7f5ec75fc7ec62550f0412c4d5dc0eaed40dce591df74c8d9806f4?
s=60&d=retro&r=g)

### 󠀁[Works great, easy to install](https://wordpress.org/support/topic/works-great-easy-to-install-2/)󠁿

 [hallcp](https://profiles.wordpress.org/hallcp/) 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!

![](https://secure.gravatar.com/avatar/c67f401b908b62f7a24b08aab671977df5816df9f32f4eddfdf707677906027c?
s=60&d=retro&r=g)

### 󠀁[Nice!!!](https://wordpress.org/support/topic/nice-2658/)󠁿

 [lenasterg](https://profiles.wordpress.org/lenasterg/) 2018 年 10 月 4 日

Thanks for the useful plugin.

![](https://secure.gravatar.com/avatar/67e0c7f3ae6eabf2bfdb8dd40dc518853754c6bdee91e9b86f857e5d41876f22?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-4812/)󠁿

 [samsk](https://profiles.wordpress.org/samsk/) 2018 年 2 月 8 日

Saved my life.

 [ 阅读所有8条评价 ](https://wordpress.org/support/plugin/multisite-custom-css/reviews/)

## 贡献者及开发者

「Multisite Custom CSS」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Nick Halsey ](https://profiles.wordpress.org/celloexpressions/)

「Multisite Custom CSS」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/multisite-custom-css/contributors)
为本插件所做的贡献。

[帮助将「Multisite Custom CSS」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/multisite-custom-css)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/multisite-custom-css/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/multisite-custom-css/)，或通过[RSS](https://plugins.trac.wordpress.org/log/multisite-custom-css/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/multisite-custom-css/)。

## 更新日志

#### 1.0

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

## 额外信息

 *  版本 **1.0**
 *  最后更新：**2 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **6.6.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/multisite-custom-css/) 和 [Greek](https://el.wordpress.org/plugins/multisite-custom-css/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/multisite-custom-css)
 * 标签
 * [css](https://cn.wordpress.org/plugins/tags/css/)[custom css](https://cn.wordpress.org/plugins/tags/custom-css/)
   [Custom Design](https://cn.wordpress.org/plugins/tags/custom-design/)[customizer](https://cn.wordpress.org/plugins/tags/customizer/)
 *  [高级视图](https://cn.wordpress.org/plugins/multisite-custom-css/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  8 条 5 星评价     ](https://wordpress.org/support/plugin/multisite-custom-css/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/multisite-custom-css/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/multisite-custom-css/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/multisite-custom-css/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/multisite-custom-css/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/multisite-custom-css/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/multisite-custom-css/reviews/)

## 贡献者

 *   [ Nick Halsey ](https://profiles.wordpress.org/celloexpressions/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/multisite-custom-css/)