Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • pavit Moderator
    #882737

    Hi

    You should go to template manager -> Layout tab and in the Responsive Layout select to hide or not a specific position where your module is assigned for various screens sizes


    1. Screenshot_3-4
    joomlartmember Friend
    #882867

    Thank you so much, pavit. It works!

    The next problem: I use the position "home-1" for the desktop ad and "home-2" for the smartphone ad.
    The result is: the desktop ad is above the content and the smartphone ad is under the content; but I need both above the content.

    How can I get "home-1" and "home-2" to one position above the content.
    What must I do to get the none existing "home-3" and "home-4" under the content.

    Thank you for your answer.

    pavit Moderator
    #883170

    How can I get "home-1" and "home-2" to one position above the content.
    What must I do to get the none existing "home-3" and "home-4" under the content.

    Hi there

    Yuo can add 2 new positions"home-3" and "home-4" and move "home-2" below "home-1"
    for instance

    Magazine-home layout is using the mainbody-full block to store these positions so you should edit this file
    /templates/ja_teline_v/tpls/blocks/mainbody-full.php and change it as showed below

    <div class="main">
        <?php if ($this->countModules('home-1')) : ?>
            <div class="wrap <?php $this->_c('home-1') ?>">
                <div class="container">
                    <jdoc:include type="modules" name="<?php $this->_p('home-1') ?>" style="raw" />
                </div>
            </div>
        <?php endif ?>
        <?php if ($this->countModules('home-2')) : ?>
        <div class="wrap <?php $this->_c('home-2') ?>">
            <div class="container">
                <jdoc:include type="modules" name="<?php $this->_p('home-2') ?>" style="raw" />
            </div>
        </div>
        <?php endif ?>
      <div id="t3-mainbody" class="container t3-mainbody"> 
          <?php if($this->hasMessage()) : ?>
            <jdoc:include type="message" />
          <?php endif ?>
          <!-- MAIN CONTENT -->
          <jdoc:include type="component" />
          <!-- //MAIN CONTENT -->
      </div> 
        <?php if ($this->countModules('home-3')) : ?>
        <div class="wrap <?php $this->_c('home-3') ?>">
            <div class="container">
                <jdoc:include type="modules" name="<?php $this->_p('home-3') ?>" style="raw" />
            </div>
        </div>
        <?php endif ?>
    <?php if ($this->countModules('home-4')) : ?>
        <div class="wrap <?php $this->_c('home-4') ?>">
            <div class="container">
                <jdoc:include type="modules" name="<?php $this->_p('home-4') ?>" style="raw" />
            </div>
        </div>
        <?php endif ?>
    </div>

    In the image below you can see resulting layout


    1. Screenshot_4-4
    joomlartmember Friend
    #883268

    It works perfectly.

    Thank you so much, pavit.

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

This topic contains 4 replies, has 2 voices, and was last updated by  joomlartmember 8 years, 2 months ago.

The topic ‘different module display on smartphone or on desktop’ is closed to new replies.