Multisite Custom CSS
Multisite Custom CSS
Description
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.
Installation
- Take the easy route and install through the WordPress plugin installer, OR,
- Download the .zip file and upload the unzipped folder to the
/wp-content/plugins/directory - Network Activate the plugin through the ‘Plugins’ menu in the network admin
- (Non-super) Admins can now manage their own CSS for the customizer for their site
Faq
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.
Reviews
Simple & Effective
By Kevin (kwickham) on January 15, 2025
Title says it all
Works, network-wide or site-by-site
By Bigue Nique (biguenique) on July 14, 2021
Great
By mae234 on April 8, 2021
Works great, easy to install
By hallcp on March 13, 2019
Nice!!!
By lenasterg on October 4, 2018
Perfect
By samsk on February 8, 2018
Just as much code as it needs 🙂
By Bernhard Kau (Kau-Boy) on October 25, 2017
Allows my Site Admins to use the Core CSS functionality
By sylviabass on April 27, 2017
Changelog
1.0
- First publicly available version of the plugin.
- Requires WordPress 4.7+.