Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Arno Berwers Friend
    #150347

    Hi there,

    For one of my customers I use this template, but now I would like to hide the mainbody from the frontpage as I don’t want to show articles there. The mainbody is causing extra whitespace where I don’t want it to.

    Is there a simple way to hide the mainbody on frontpage?

    Arno

    Saguaros Moderator
    #340408

    Dear Arno!

    Please open the file: templatesja_kyanite_iilayoutsdefault.php and try to find codes:
    [PHP]
    <!– MAIN CONTAINER –>
    <div id=”ja-container” class=”wrap <?php echo $this->getColumnWidth(‘cls_w’); ?>”>
    <div class=”main clearfix”>
    <div id=”ja-mainbody” style=”width:<?php echo $this->getColumnWidth(‘mw’) ?>%”>
    <div class=”ja-box1″><div class=”ja-box2″>
    <?php $this->loadBlock(‘main’) ?>
    <?php $this->loadBlock(‘left’) ?>
    </div></div>
    </div>

    <?php $this->loadBlock(‘right’) ?>

    </div>
    </div>
    <!– //MAIN CONTAINER –>
    [/PHP]

    and replace:
    [PHP]
    <?php if( !$this->isFrontPage() ) : ?>
    <!– MAIN CONTAINER –>
    <div id=”ja-container” class=”wrap <?php echo $this->getColumnWidth(‘cls_w’); ?>”>
    <div class=”main clearfix”>
    <div id=”ja-mainbody” style=”width:<?php echo $this->getColumnWidth(‘mw’) ?>%”>
    <div class=”ja-box1″><div class=”ja-box2″>
    <?php $this->loadBlock(‘main’) ?>
    <?php $this->loadBlock(‘left’) ?>
    </div></div>
    </div>

    <?php $this->loadBlock(‘right’) ?>

    </div>
    </div>
    <!– //MAIN CONTAINER –>
    <?php endif; ?>
    [/PHP]

    Good luck

    adosoa Friend
    #342287

    Can i use this code for Kyanite I too ? I mean for remover of body ?

    Saguaros Moderator
    #342718

    Yes

    You can use this for the kyanite i template

    Good luck

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 3 voices, and was last updated by  Saguaros 14 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum