By patbranch on
..to a node. How do I do that? I added nodeStyles.css to the template file and it isn't working.
... ?
function atck_styles() {
$css = drupal_add_css(path_to_theme() .'/page-layout.css', 'theme', 'all');
$css = drupal_add_css();
unset($css['all']['module']['modules/node/node.css']);
unset($css['all']['module']['modules/system/defaults.css']);
unset($css['all']['module']['modules/user/user.css']);
unset($css['all']['theme']['themes/--pbmedia09/nodeStyles.css']);
return drupal_get_css($css);
I added this to page.tpl.php and tried it on node.tpl.php.
... ?
$styles = drupal_get_css(drupal_add_css(path_to_theme() . '/nodeStyles.css', 'theme', 'all', TRUE));
That didn't work either. I wish you could just add head content to nodes....
Comments
bump...
bump...
Another bump...
Third bump.
Can someone please help? It
Can someone please help? It shouldn't be this hard to link a stylesheet...
Attach new CSS
Hope this helps..It looks slightly different than what you were trying.
http://drupal.org/node/66122
Thanks for the reply. That
Thanks for the reply. That would go on the template file, right? It's not linking...for some reason. Here's the site...you can see it's not in the source, http://mediabypb.com/drupal-5.7/main .
You may need to specify the
You may need to specify the hook, here is my code, hope it can help.
Thanks, but I still can't
Thanks, but I still can't get it to work... I don't know anything about php or any programming for that matter.
This shouldn't be so
This shouldn't be so difficult... Maybe i'm just dumber than I thought at it? haha
I found the css module which
I found the css module which does just what I need, so I don't even need to link a whole stylesheet.
http://drupal.org/project/css
Yeah!
Congrat's. I love happy endings.
Haha. That's the best module
Haha. That's the best module ever for me since the content is all different compared to a typical magazine/news/blog site.
http://mediabypb.com/drupal-5.7