I want to tell that I don't know anything about PHP..

I want a certain content type to be styled NOT by the style.css of my Corporate Clean theme but another css.
The machine name of my content type is 'event'.

What I did, because this is what I found about it, is to copy the node.tpl.php and name it node--event-tpl.php or copy the page.tpl.php and call it page--event-tpl.php

Than add a line to the .info of my theme:
stylesheets[all][] = colorbox_style/colorbox_style.css

It doesn't work for me.
- - -
(In general I was wundering how the page.tpl.php 'knows' he has to use the style.css..? Because in the page.tpl.php I see IDs' that are listed in the style.css. But in the page,tlp.php there is not something like
$document->addStyleSheet(JURI::base() . 'modules/mod_example/css/mod_example.css');)

Comments

jgraham’s picture

Status: Active » Closed (won't fix)

This question is really outside the scope for this module. I would suggest taking a look at the theme documentation, the themes mailing list or via IRC.

What you are trying to do sounds correct to me though, so maybe you have misnamed something or you are running into a caching issue. Perhaps try clearing your caches and forcing a refresh in your browser? I would highly suggest using devel along with devel_themer.

Good Luck!