Hi,

Anyone got collapsiblock to work in the Genesis theme? Have added the .inc file but am not sure what code i need to add around the h2 tags in the block.tpl file.

Thanks

Comments

cside’s picture

Sorry, to be more specific here is the relevant block.tpl code:

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

    <?php if ($block->subject): ?>
      <h2 class="block-title"><?php print $block->subject; ?></h2>
    <?php endif; ?>

    <div class="block-content">
      <?php print $block->content ?>
    </div>

where the active element is:
<div class="block-inner inner">

I have tried all sorts of combinations and followed the most recent thread solutions but still can't get it to work.

Can anyone help?

Thanks

cside’s picture

Scrap the earlier comments! Finally worked it out :)

jocklife’s picture

How?

dean.p’s picture

Yes, please let us know.... 'Finally worked it out..' helps no-one, especially those of us still with the problem :(

Jeff Burnz’s picture

Status: Active » Fixed

You need the "content" class on the wrapper div around $block->content

Add the class as below and all will work as expected:

    <div class="block-content content">
      <?php print $block->content ?>
    </div>

One issue is that for users with Edit/Configure blocks permissions the block edit links will hover in front of the collaspiblock arrow, if this is problem you can switch off block edit links by commenting out the $edit_links variable like this:

<?php // print $edit_links; ?>

Status: Fixed » Closed (fixed)

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