Closed (cannot reproduce)
Project:
Block Class
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 May 2012 at 01:37 UTC
Updated:
3 Oct 2012 at 22:13 UTC
Jump to comment: Most recent
Comments
Comment #1
hollyh commentedsame problem
Comment #2
Rugman commentedSimilar Problem
I guess you guys were discussing provision of predefined classes as pull down menu, Hope you are implementing it soon. Its would make this module a must for all.
Comment #3
berenddeboer commentedYour theme's block.tpl.php is probably wrong.
Make sure it contains something like this:
class="<?php print $classes; ?>"If you don't see a "print $classes" it won't work. All out of the box Drupal themes work.
Comment #4
berenddeboer commentedComment #5
berenddeboer commentedComment #6
spidersilk commentedSome Drupal 7 themes use $attributes rather than $classes - Omega is one popular example (version 3, at least - haven't checked version 4). So it won't work with this module out of the box, but a small edit to block.tpl.php will fix that:
In line 2, where it says:
<<?php print $tag; ?><?php print $attributes; ?>>change that line to:
<<?php print $tag; ?> class="<?php print $classes; ?>"<?php print $attributes; ?>>I adapted that from the equivalent template in Zen, which uses both $classes and $attributes, as above, and it seems to work.
Comment #7
s@ilor commentedJust tried #6, and it threw all other blocks and menu's around.