Is there an easy way to do this?

Jay

Comments

czheng’s picture

Can you be a bit more specific? I'm pretty sure CSS in your theme's style.css file overrides any default stuff.

drupalninja99’s picture

it can but style sheets cascade with each other (thus the name) so you'd have to override each specific property which is of course a beating. I would like the option of not including the drupal.css stylesheet altogether.

czheng’s picture

oh i see. then why not just save a blank file in place of drupal.css?

tclineks’s picture

saving a blank file would work, I usually hack it out of includes/common.inc (drupal_get_html_head).

A cleaner solution would be to overload stylesheet_import in your theme (declare %themename%_stylesheet_import() in your smartytemplate.php file) and conditionally filter it out there.

Standart’s picture

Searching drupal.org for 'drupal.css' I found
http://drupal.org/node/23215 and
http://drupal.org/node/23217

I guess you only have to add the proposed function to smarty.engine replacing 'phptemplate' with 'smarty'.

tclineks’s picture

this should not go in smarty.engine but in your theme-specific smartytemplate.php -- prefixed with the name of your theme. i.e. function bluemarine_smarty_stylesheet_import() { ...