Hello,

I am working on my first Drupal theme from scratch. I have created a Page.tpl.php file and a page.front.tpl.php file which makes it possible to have different HTML and structure in my frontpage from the rest of my pages.

I would like to apply a style sheet called home.css to this page ONLY. I can't seem to tweak the .info file to get this to happen.

Can anyone give me pointers to how to get to do it?

Thankyou in advance.

Comments

Cayhn’s picture

This could perhaps work if you put this in the page.tpl.php where the print $styles; is located.

  <?php if(drupal_is_front_page()) {
  $styles = 'home.css';
  
  }
  print $styles; 
  
    ?>