WordPress plugin that combines, minifies, and compresses CSS files. The CSS files that this plugin combines and minifies must be enqueued by using wp_enqueue_style. The plugin combines and minifies CSS and writes the output into files in the uploads directory and makes attempts to correct paths for images and fonts. Also see the companion plugin, Combine JS.
- option to change the CSS domain if a CDN is used
- option to change how often CSS files get refreshed
- option to exclude certain CSS files from combining
- option to turn on/off gzip compression
- option to include Gravity Forms CSS (this is due to Gravity Forms not using wp_enqueue_style)
- option to turn on debugging
combine-cssfolder to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Settings -> Combine CSS, update settings, and select “Save Changes” button
- CSS is not displaying properly after activating the plugin. What can I do?
You can debug the plugin by activating the debug option on the settings page and reviewing the server’s error log for details. You can try excluding certain CSS files from getting combined to see if that fixes the issue.
- How do I use the “CSS Files to Ignore” feature in Settings?
You can tell the CSS Combine plugin to ignore certain CSS files by using the name of the actual CSS file (style.css) or providing the theme or plugin name followed by a colon and then the CSS file (fooplugin:style.css or footheme:style.css).
This mother f**** plugin ruin my website style and i can able to fix or restore it back wordpress should f***** them off.
Contributors & Developers
“Combine CSS” is open source software. The following people have contributed to this plugin.Contributors
- fix flock warning spotted by Manuel Razzari on wpengine.
- Change system tmp dir so that it includes namespace directory; bug spotted by jprado.
- Added HTML output compression option in settings that uses: ob_start( ‘ob_gzhandler’ ).
- Changed explode to regex split for ignore list based on feedback from ckgrafico.
- Fixed PHP Warning reported by thorstone137.
- Changed gathering of CSS function to use print_styles_array filter. Fixed path issue related to missing forward slash. Added helper functions.
- Change temp dir function.
- Subtle changes from JS Combine.
- Added small change to allow plugin to work with Social Wiggle plugin.
- Improved debugging and improved condition for checking whether cache is expired.
- Fixed ignore files issue due to newlines and context slash issue.
- Fixed regex issue (also spotted by jprado).
- Added Delete CSS Cache button.
- Addressed issue of zero length settings file.
- Added additional messages regarding tmp dir and settings file for Settings form.
- Fixed issue of double forward slashes in combined CSS file.
- Reintroduced cache checking method from version 0.4 to address issues of blank stylesheets.
- Fixed notices and warnings in error log (thanks to pha3z).
- Added additional debug messages.
- Added glob function to remove cached files when settings saved.
- Note: Version 0.4 uses a file (css.php) within the plugin directory to serve combined CSS files. Also, it requires a tmp directory to be created within the plugin directory; the plugin will create the directory automatically if it has the permission to do so. View the settings page after updating to version 0.4, and it will let you know what commands need to be run, if any.
- Added additional path changes for assets, images, etc.
- Created standalone script with token argument to serve combined CSS file.
- Created tmp directory that allows WP settings to be stored in a file.
- Additional changes to minify function.
- Fixed issue with minifying of CSS (for double spaces and more).
- First release!