CSS Injector css not loaded last
lutegrass - May 6, 2009 - 16:10
| Project: | CSS Injector |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Would there be a way to ensure the css injector css files are loaded last by Drupal? Otherwise, it's hard to use it to effectively override certain module styles.

#1
i've got the same problem. but changing module to theme works for me:
drupal_add_css(file_create_path($css_rule['file_path']), 'module', $css_rule['media'], $css_rule['preprocess']);to
drupal_add_css(file_create_path($css_rule['file_path']), 'theme', $css_rule['media'], $css_rule['preprocess']);regards
#2
Yep, here is my css:
<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/cck/theme/content-module.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/default/files/css_injector_1.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/tagadelic/tagadelic.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/faceted_search/faceted_search_ui.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/default/files/color/garland-29b97441/style.css?O" />
I can't even override garland's color css.
#3
try setting the css injector rule to only "screen"
regards