Posted by andersin88 on August 29, 2012 at 6:12am
How to add more "Block class" to template?
I want to customize many block color in my template, how to create a new "Block class" in template?
example this:
http://imagebin.org/index.php?mode=image&id=226267
is that possible add hilite4, hilite5...with different css? I know css but dont know programming.
Comments
The Block Class module should
The Block Class module should help.
thank.
thank.
Use a preprocess block,
Use a preprocess block, please see below:
function YOURTHEME_preprocess_block(&$variables) {$variables['classes_array'][] = 'yourclass';
}