Drupal homepage only CSS

So you want to have a base.css file on all pages, then a homepage.css file just for the homepage, and non-homepage.css for all other pages? Here’s how:

In your themes’ .info file, include the base.css file:

In your themes’ template.php file:

Note: In the code above I have chosen to inline the homepage only CSS.


Did you find this post useful?

Tip me some bitcoin: