Closed (fixed)
Project:
iTheme2
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 May 2009 at 21:49 UTC
Updated:
5 Jan 2013 at 05:40 UTC
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 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").