Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • manipenny Friend
    #977192

    Hello, can you help me on adding a new module position in JA Simply Template? I want to add a module for social links and a module for secondary menu.

    Pankaj Sharma Moderator
    #977432

    Hi
    You can add module position in the JA Simply template , for this kindly follow the suggestion given in this thread .
    You have add your module position code in the /templates/ja_simpli/index.php file .
    You can see how other module positions are defined in the same file , To give it a custom styling you can use custom.css file .

    Hope it helps .

    manipenny Friend
    #978988

    I added this code: <?php if($this->countModules(‘new-position’)) : ?>
    <jdoc:include type="modules" name="new-position" style="raw" ></jdoc:include>
    <?php endif ?>

    in index.php file, so the final code is:

    <?php if ($helper->has('header-right-class')) : ?>
            <!-- ADS-->
            <div class="banner <?php $helper->_('header-right-class') ?> <?php $helper->_('extraClass_header_right'); ?> ">
                <jdoc:include type="modules" name="<?php $helper->_('header-right-pos') ?>" style="none" /> 
            </div>
            <!-- // ADS-->
            <?php if($this->countModules('new-position')) : ?>

    <jdoc:include type="modules" name="new-position" style="raw" ></jdoc:include>
    <?php endif ?>

    <?php endif ?>

        </jdoc:include>
    
        <?php $helper->_container_close('header') ?>
    </header>
    <!-- // HEADER -->
    <?php endif ?>
    <?php if ($helper->is('nav-enabled')) : ?> .

    I then added new-position in templateDetails.xml file.
    From joomla backend I created a new module that I assigned in that possition. But nothing happened. Do you have any idea why?

    Pankaj Sharma Moderator
    #979020
    This reply has been marked as private.
    manipenny Friend
    #979064

    The site is not online yet. Can you check on my code and see if it is right?

    Pankaj Sharma Moderator
    #979300

    Hi
    Kindly send me your index.php file , as attachment here .

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

This topic contains 5 replies, has 2 voices, and was last updated by  Pankaj Sharma 7 years, 6 months ago.

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