Archive for October 2013

How to add CSS classes to body tag based on Drupal path

Add custom CSS classes to <body> tag of your theme.


The $path can be more than one path, separated with newline “\n”.

How to add First and Last CSS class to Drupal blocks

If you’re a themer looking to style blocks when its the first or last block in the region, use the following code snippet.