Hi,

This is an awesome theme! One quick question though. Can you tell me how to make the blocks collapsed by default?

Many thanks

Comments

steeph’s picture

Title: Collapsiblocks » Collapse blocks by default
Status: Active » Fixed

Basically you have to assign "display: none" to the block content (.dbx-content). Since I wanted all blocks on the site to be collapsed by default, I changed line 7 in block.tpl.php to:

<div class="dbx-content" style="display: none;"><?php print $block->content ?></div>

If you want only certain blocks to be collapsed by default, you have to assign this to only those block content divs, whichout overriding the value that is set by the JS (no "!important").

Status: Fixed » Closed (fixed)

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