test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • lovedigit Friend
    #640333

    Hello,

    I would like to create a new responsive module position after main menu which should be visible for mobile as well as desktop. I will utilize this position for banner advertisements. Can you help me set it up?

    I only need to know how I can place this position there, I can do rest of it myself. Just need a proper guidance.

    P.S. Sorry for my bad english.

    Ninja Lead Moderator
    #645211

    Hi

    If you want to add new position under main menu on your site, you can follow my guide below:

    – Open both templates/ja_teline_v/tpls/blocks/mainbody-full.php and templates/ja_teline_v/tpls/blocks/mainbody-magazine.php files

    – Find and change


    <?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 ?>

    to


    <?php if ($this->countModules('new-position')) : ?>
    <div class="wrap <?php $this->_c('new-position') ?>">
    <div class="container">
    <jdoc:include type="modules" name="<?php $this->_p('new-position') ?>" style="raw" />
    </div>
    </div>
    <?php endif ?>

    <?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 ?>

    Hope it helps

    lovedigit Friend
    #645257

    Hello Adam,

    Thank you for quick response. The code your provided does work, but it shows up below breadcrum navigation in single article view. How to put it above that position. I appreciate your help. 🙂

    Ninja Lead Moderator
    #645316

    Look at the screenshot

    and you can move code above into templates/ja_teline_v/tpls/blocks/navhelper.php file


    <?php if ($this->countModules('new-position')) : ?>
    <div class="wrap <?php $this->_c('new-position') ?>">
    <div class="container">
    <jdoc:include type="modules" name="<?php $this->_p('new-position') ?>" style="raw" />
    </div>
    </div>
    <?php endif ?>

    Ninja Lead Moderator
    #743939

    Look at the screenshot

    and you can move code above into templates/ja_teline_v/tpls/blocks/navhelper.php file


    <?php if ($this->countModules('new-position')) : ?>
    <div class="wrap <?php $this->_c('new-position') ?>">
    <div class="container">
    <jdoc:include type="modules" name="<?php $this->_p('new-position') ?>" style="raw" />
    </div>
    </div>
    <?php endif ?>

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

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

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