-
AuthorPosts
-
October 17, 2016 at 4:14 pm #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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 18, 2016 at 5:54 am #977432Hi
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 .
1 user says Thank You to Pankaj Sharma for this useful post
October 21, 2016 at 10:05 am #978988I 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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 21, 2016 at 11:06 am #979020This reply has been marked as private.October 21, 2016 at 12:23 pm #979064The site is not online yet. Can you check on my code and see if it is right?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 23, 2016 at 12:37 am #979300Hi
Kindly send me your index.php file , as attachment here . -
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by Pankaj Sharma 8 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum