Assigning css class to a particular block I want to add a CSS class to a particular block. I am using the module Block Class for it as shown in block_class module. I am able to enable the module and assign the class by going to structures/block/configure. I am facing problem in where to add the php snippet. I am using a Zen starter kit theme and have copied the block.tpl.php from Zen/templates to my theme/templates and added the lines as specified...

Here's what my code looks like:

Before:

&lt;div id="&lt;?php print $block_html_id; ?&gt;" 
class="&lt;?php print $classes;   ?&gt;"
&lt;?php print $attributes; ?&gt;&gt;


After:

&lt;div id="&lt;?php print $block_html_id; ?&gt;" 
class="&lt;?php print $classes; ?&gt; **&lt;?php print block_class($block);** ?&gt;"
&lt;?php print $attributes; ?&gt;&gt;
As far as I know, you don't have to add any code to use the class you set on structure/block/configure. The class should be automatically added to $classes array.