The css does not override when you copy it to your own theme folder. Templates work correct but the css does not.

Comments

jchatard’s picture

Stranged, I just gave it a try, and it works perfect for me.

What CSS rule are you trying to override?

Michsk’s picture

I want to alter the whole css, and off course i can copy it to my own css file but then i would load a unnecessary css (homebox.css).

When i copy the homebox.css to sites/all/themes/my_theme/assets/css/ and clear my cache it does not override.

jchatard’s picture

Category: bug » support

Please check your HTML generated source code and be sure:

1. your css is actually called
2. is called AFTER the one from the module

Appart from that, I have no idea of what couldn't work.
Jérémy

Michsk’s picture

jchatard, it is not getting calledin the html file. Do i maybe have to place the css in the same location as the tpl file?

jchatard’s picture

You need to put the CSS file wherever you want in your theme.

And, in your template.php, you need to call http://api.drupal.org/api/function/drupal_add_css/6 with the proper parameters.

Everything should be fine.

Jérémy

Michsk’s picture

So automatic override does not work and i have to use template.php...

jchatard’s picture

"automatic override" for CSS doesn't exists in Drupal. You need to declare your CSS files manually.

But you could override any module CSS files from your main styles.css if you like.

This is the way Drupal theme works.

Michsk’s picture

ok that stupid from me, i tought drupal handeld css just like tpl files.

jchatard’s picture

Status: Active » Closed (fixed)

You needed to the truth ;-)

I close this issue, feel free to re-open if you have problem.