Allows administrators to inject CSS into the page output based on configurable rules. It's useful for adding simple CSS tweaks without modifying a site's official theme. The CSS is added using Drupal's standard drupal_add_css() function and respects page caching, etc. The 2.x brach leverages CTools so CSS can be included with Feature changes (ie. CSS that improves the look of a View can be packaged with the View).
This module is definitely not a replacement for full-fledged theming, but it provides site administrators with a quick and easy way of tweaking things without diving into full-fledged theme hacking.
PLEASE NOTE:
- Creative individuals can use CSS to execute code on a client's browser, by injecting JS snippets in place of images and so on. Treat the 'Administer CSS Injector' permission carefully, as you would any other sensitive administrative tool; allowing untrusted individuals to use it is a security risk.
- CSS is not actually stored in the database in 1.x branch of this module. The 2.x branch is a complete rewrite that leverages CTools making it possible to manage CSS changes with Features
There is currently no upgrade path from 1.x to 2.x
Know Issues w/ 2.x Branch
- #2340929: 2.x update does not import the URL filter properly
- #2340925: Add support for visual editor to 2.x
- #2340919: Add support for targetting specific themes
Related Projects:
- The excellent Sweaver does a full WYSIWYG alteration of your look and feel, and will do custom CSS just like CSS Injector will.
- JS Injector lets you inject javascript along the lines of this module.
Project information
Seeking new maintainer
The current maintainers are looking for new people to take ownership.No further development
No longer developed by its maintainers.10,248 sites report using this module
- Created by eaton on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.





