Code for hiding block titles |
Subject: Code for hiding block titles by jeffgr on 2008/2/15 7:41:34 Hi everyone, Hiding the titles of various blocks in my sites is important to me, as it allows to further customise the look and feel of the site away from a typical "boxy" design. In Xoops, I was replacing the right and left block code in the theme with this new code snippet: <{foreach item=block from=$xoops_lblocks}> <{if $block.title|regex_replace:"/.*none*/":"none" ne "none"}> <div class="<{cycle values="blockTitle"}>"> <{$block.title}></div><{/if}><div class="blockContent"> <{$block.content}></div> <{/foreach}> When I entered the word "none" in the block title, the title for that block would not appear. The theme code for the default ICMS theme is slightly different though...as seen below: <!-- Start Left Column --> <{if $xoBlocks.canvas_left}> <div id="xo-canvas-leftcolumn"> <{foreach item=block from=$xoBlocks.canvas_left}><{includeq file="$theme_name/theme_blockleft.html"}> <br /> <{/foreach}> <!-- more content here for example --> </div> <{/if}><!-- End Left Column --> How can I tweak the side column code in ICMS, so that it hides the block titles, as does the above example does in a Xoops theme? Thanks for your thoughts! jeffgr |