Closed (fixed)
Project:
CSS Injector
Version:
7.x-1.7
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2011 at 18:55 UTC
Updated:
9 Dec 2011 at 16:10 UTC
Drupal 7.9 site.
CSS Injector properly enabled, but does not seem to work.
I think it is the way I am specifying Drupal paths.
For example I want to load some custom CSS for ONLY node/2
But if I type node/2 into the Pages box, save the Rule and clear the site caches, the CSS rules I specified are not being applied to node 2.
Syntax problem?
Thanks - I looked all over and could not find a single example of how to specify a page by its NID, for use with CSS Injector.
Comments
Comment #1
rfayI just tried your exact example and it worked fine.
Please try this:
Rule: .content { color: red; }
Add only on the listed pages: node/2
Please make sure during the debugging process to turn off CSS aggregation and look to see if the file is actually being included (use firebug or view source)
You probably haven't run across it before, but Drupal paths are always specified in this way "node/55" or "admin/config" or whatever. That's because Drupal may work with or without Clean URLs turned on.
Comment #2
eduuser commentedOddly enough, CSS Injector is working now. I had tried the same type of thing you suggested (in my case it was:
li.con a {
color:red;
}
Didn't work 2 days ago, working now. Most likely a cache issue.
Thanks for your help!
Comment #3
rfay