Collapsiblock in Genesis theme
cside - February 5, 2009 - 23:33
| Project: | Collapsiblock |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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

#1
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
#2
Scrap the earlier comments! Finally worked it out :)
#3
How?
#4
Yes, please let us know.... 'Finally worked it out..' helps no-one, especially those of us still with the problem :(
#5
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; ?>#6
Automatically closed -- issue fixed for 2 weeks with no activity.