Using the CSS Injector module to Theme Drupal 6
Tags:
The CSS Injector module allows Users with the proper privileges to insert CSS into a Drupal page (ie: a designer). It's useful for adding CSS tweaks without modifying the site's theme directly. This module is NOT a replacement for full-fledged theming.
How-To the CSS Injector module
- read the README: ./css_injector/README.txt
- Install the module: ./admin/settings/css_injector
- Create new CSS: ./admin/settings/css_injector
- Edit permisions: ./admin/user/permissions
Notes:
- Creative individuals can use CSS to execute code on a client's browser, by injecting JS snippets. Treat the 'Administer CSS Injector' permission carefully, allowing untrusted individuals to use it is a security risk.
- In Drupal Theme CSS is applied after modules. That means CSS from themes will override CSS from the CSS Injector module. To override CSS that is already applied, use the "!important" flag w/in the CSS tags you inject.
- Our goal is to allow Role based access to edit CSS, without access outside of the Drupal interface. So I did a little research on CSS modules:
- CSS Injector module (this is the One)
- CSS api module (newer, an API for use by other modules)
- CSS module (for per page css additions)
- CSS edit module (no longer supported)
Original Article: