Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • tamirzzz2 Friend
    #190749

    Hi,

    I have installed the JA Beranis template. I noticed that the default content presented in the frontpage is very narrow.

    I entered the template settings in layout I deleted the sidebar-1, sidebar-2 settings and still it had no effect.

    I am attaching screenshot of the template layout and my site homepage.

    Can you please advise?

    Tnx


    1. ja1
    2. ja2
    tamirzzz2 Friend
    #506552

    Can someone please reply? tnx

    Ninja Lead Moderator
    #506553

    If you want to remove sidebar-1, sidebar-2 position in JA Beranis Template, you can customize it this way

    Open templates/ja_beranis/tpls/blocks/mainbody.php file

    + Set config change to layout with no_sidebar

    Find

    $layout = $layout_config->$layout;

    Change to

    $layout = 'no_sidebar';
    $layout = $layout_config->$layout;

    + Remove both position on the template

    Find and remove this script in mainbody.php file


    <?php if ($this->countModules($sidebar1)) : ?>
    <!-- SIDEBAR 1 -->
    <div class="t3-sidebar t3-sidebar-1 <?php echo $this->getClass($layout, $col) ?><?php $this->_c($sidebar1)?>" <?php echo $this->getData ($layout, $col++) ?>>
    <jdoc:include type="modules" name="<?php $this->_p($sidebar1) ?>" style="T3Xhtml" />
    </div>
    <!-- //SIDEBAR 1 -->
    <?php endif ?>

    <?php if ($this->countModules($sidebar2)) : ?>
    <!-- SIDEBAR 2 -->
    <div class="t3-sidebar t3-sidebar-2 <?php echo $this->getClass($layout, $col) ?><?php $this->_c($sidebar2)?>" <?php echo $this->getData ($layout, $col++) ?>>
    <jdoc:include type="modules" name="<?php $this->_p($sidebar2) ?>" style="T3Xhtml" />
    </div>
    <!-- //SIDEBAR 2 -->
    <?php endif ?>

    Let me know if it helps

    tamirzzz2 Friend
    #506615

    Thank you.

    I can do that, but isn`t it against the all principle of Joomla in which modules positions should be defined by the modules and collapse otherwise?

    In other words, shouldn`t such an obvious task not be done by hacking?

    Ninja Lead Moderator
    #506765

    Other the way you can use css style to hide sidebar-1, sidebar-2 position in JA Beranis Template but maybe you need to many change and very difficult for you.

    tamirzzz2 Friend
    #506779

    Are you sure there isn`t a way of doing that without hacking?

    Ninja Lead Moderator
    #506991

    <em>@tamirzzz2 390788 wrote:</em><blockquote>Are you sure there isn`t a way of doing that without hacking?</blockquote>

    Sure mate, this is fixes from php code and not hack on your site.

    tamirzzz2 Friend
    #516756
    Ninja Lead Moderator
    #516880

    @tamirzzz2: Can you tell me what problem are you trying to do? I’m not sure what you are implying.

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

This topic contains 9 replies, has 2 voices, and was last updated by  Ninja Lead 10 years, 10 months ago.

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