Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
steeph CreditAttribution: steeph commentedBasically 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").