View on WordPress.org ยป
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. Sometimes, you need some CSS to apply regardless of the current theme persistently. This plugin adds a plugin CSS option for CSS that’s global and persists across theme changes.
With the Customizer, your CSS is instantly live-previewed, offering the ability to see exactly how your site will look before you publish your changes. The plugin CSS option is stored as an option
. Prior to WordPress 4.7 (which introduced additional CSS in core), theme-specific CSS was stored as a theme_mod
, in 4.7 and newer this is migrated to the core CSS functionality (which is theme-specific).
Download
Latest version: Download Modular Custom CSS v2.1
Modular Custom CSS has been downloaded times through WordPress.org.
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 - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to the Customizer (Appearance -> Customize) to add custom CSS to your site.
Screenshots
Changelog
2.1
- Leverage the Code Editing control in WordPress 4.9 to add syntax highlighting, hinting, and more.
- Add more-descriptive text to the core theme CSS control, to distinguish it from the plugin CSS control.
- Add plugin textdomain to facilitate translations.
2.0
- Migrates theme CSS to the core custom CSS functionality in WordPress 4.7.
- Adjusts the plugin CSS option to use the
edit_css
capability introduced in WordPress 4.7. As a result, multisite networks will need to provide this capability to site administrators for them to be able to access CSS now.
1.0
- First publicly available version of the plugin.
- Requires WordPress 4.0+.