Posted by tunning88 on October 28, 2009 at 12:25am
Jump to:
| Project: | Block Class |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (cannot reproduce) |
Issue Summary
Hi,
I installed the module and edit my block.tpl file, than I added the class "myclass" to one block, but in my html code i can't see the myclass class. It doesn't work.
My block.tpl code is:
<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="clear-block block block-<?php print $block->module ?> <?php print block_class($block); ?>">
<?php if (!empty($block->subject)): ?>
<h2><?php print $block->subject ?></h2>
<?php endif;?>
<div class="content">
<?php print $block->content ?>
</div>
</div>and in the form of my block settings I write myclass without quotes.
What is wrong?
Thanks
Comments
#1
@tunning88: That looks correct. Can you try making another change to the block.tpl.php file -- something obvious like adding a line of text -- to make sure Drupal is actually using that block.tpl file?
#2