Is it not standard procedure to place an updated css-file in the theme folder? That way upgrading the module would not overwrite customizations.

As it appears, I have to change the print.css in the module folder...

Comments

ryan_courtnage’s picture

There is a setting to use a custom stylesheet in print.module settings (admin/settings/print/common).

I had a problem where this custom stylesheet was used for Print-friendly pages, but ignored for PDF generation (dompdf). As a workaround, I simply included my custom styles in a print.tpl.php file, which I put in my theme dir.

ie, in the head> section I put:

<style type="text/css">
  <?php print file_get_contents(drupal_get_path('theme','mytheme') . "/mystyles.css"); ?>
</style>
spade’s picture

Cool workaround. Thanks a bunch.

jcnventura’s picture

Status: Active » Closed (works as designed)

By design, this module avoid the css from the theme. If your theme's print.css is useful, you can configure it in the module settings form, but be aware that the print.tpl.php contains several module-specific classes which are probably not included with your theme's css file.

spade’s picture

Well, thanks jcnventura for clarifying that.

Keep up the good work!