hey, first of all this is a great theme, i am using it as a base for two sites already and i really like it.

what i seem to be missing though are id's for blocks, i have had block id's in other themes which helped me to theme blocks individually. is there a chance you will add this feature in the future?

Comments

tobiasb’s picture

Tada

<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="clearfix block block-<?php print $block->module ?>">
  <?php if ($block->subject!=""): ?>
  <div class="block-header">
    <h3><?php print $block->subject ?></h3>
  </div>
  <?php endif; ?>
  <div class="block-content">
    <?php print $block->content ?>
  </div>
</div>

CSS for Safari:
.clearfix {
display:block;
}
aschiwi’s picture

ouch! why didn't i think of that... could have just looked in the block.tpl.php of another module :-) it's actually what i ended up doing because i know it works ;-)

so in fblike in block.tpl.php i replaced <div class="block"> with

<div class="<?php print "block block-$block->module" ?>" id="<?php print "block-$block->module-$block->delta"; ?>">

thanks for your help spartacus :-)

tobiasb’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.