http://mgb.square7.ch/forum

Hello,

I have no blocks for the forum sites of my website and expected the theme to use the additional space for the forum display, but it still remains small as you can see when clicking on the link above.

How can I change that?

Kirsten

Comments

ishmael-sanchez’s picture

Assigned: KirstenLangholz » Unassigned
Status: Active » Fixed

If you open the page template (page.tpl.php) you will see the sidebar div is always printed out. If you wanted to only show that when there is content in the $right region add a conditional around the sidebar div like:

<?php if  (!empty($right)): ?>
      <div id="sidebar">
        <?php print $main_feed; ?>
        <?php print $search_box; ?>
        <div id="widgets">
          <?php print $right; ?>
        </div><!-- /widgets -->
      </div><!-- /sidebar -->
<?php endif; ?>

just be aware the $main_feed and $search_box variables will not be output unless there is something in the that $right region or just move them out of the conditional.

KirstenLangholz’s picture

Status: Fixed » Closed (fixed)

Thanks for this explanation. Works as described ;)