Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In certain blocks the content is not wrapped in a <div class="content">
.
For this reason collapsiblock does not work with the Zen theme 5.1. Zen has a block.tpl.php that does not wrap the <?php print $content; ?>
in an extra div and it is this div that is hidden or shown by Collapsiblock.
For Zen you can solve it with adding the block.tpl.php to your theme and add the wrapper:
<div class="content">
<?php print $content; ?>
</div>
Comments
Comment #1
Demoshane CreditAttribution: Demoshane commentedCan confirm this. Won't work with adaptive theme either.
Comment #2
jcsnyder CreditAttribution: jcsnyder commentedI am struggling with this as well. Thanks.
Comment #3
mvcWhen using themes like Zen 7.x-5.x you will either need to modify block.tpl.php (or its derivatives) as shown above or change the collapsiblock selectors at admin/appearance/settings. If certain base themes are going to make it hard to figure out where the block content is located, that's not this module's fault. I suggest mentionning this briefly in README.txt.
Comment #4
mvcforgot to update version
Comment #5
VBN CreditAttribution: VBN commentedActually, on Zen theme 7.x-5.5 you need to change this
Change:
Into:
Comment #6
mvc@VBN: I think you left out the closing div tag. It should be:
Comment #7
darvanenRequires re-architecture, should be tackled in a new version.
Comment #8
darvanenSee parent issue.
Comment #9
darvanen