Using print version 7.x-1.1 with omega theme 7.x-3.1 and I can't seem to keep the current theme css for the print page. Anyone experience the same thing?
Using print version 7.x-1.1 with omega theme 7.x-3.1 and I can't seem to keep the current theme css for the print page. Anyone experience the same thing?
Comments
Comment #1
henrijs.seso commented#1608960: Apparent wrong group for drupal_add_css assets has something to do with this issue probably.
Quickfix if your css files are in theme. Place print.css in theme and add
@import "THEMECSSFILE.css";to get your styles in print.Comment #2
jcnventura@Alexis B: Is this really only with Omega? If it works fine with other themes, this is in reality an omega issue.
Comment #3
jcnventuraNo further info in more than two weeks. Closing the issue.
Comment #4
bradjones1This is indeed a problem with Omega, but it's not to do with the group but rather how Omega adds in CSS.
One of Omega's built-in base themes, Alpha, adds css inside a hook_preprocess_html() implementation, which doesn't really do anything given print.module outputs HTML straight to the browser before this would be called as part of the normal page render. You can, however, add in your theme HTML by implementing hook_css_alter() in your theme (or a module.) A la:
Note this will render the "keep current theme CSS" configuration option moot, but oh well!