Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Yap Friend
    #190829

    Dear all,

    I would like to add/re-position the search module to the menu bar as follow, any idea how to do it?

    Regards
    Yiapls


    1. search
    pavit Moderator
    #506731

    Hi

    You can add the search module to the Mainnav if you like you can do as showed below

    Open this file

    templatesja_nexblocksheader.php

    copy and cut this code

    <?php if($this->countModules('search')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>
    <?php endif; ?>

    then open this file pluginssystemjat3jat3base-themesdefaultblocksmainnav.php and copy the code into

    <?php $jamenu->genMenu (1); ?>
    <!-- jdoc:include type="menu" level="1" / -->
    </div>
    <?php endif;?>
    <?php if($this->countModules('search')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>
    <?php endif; ?>

    <ul class="no-display">
    <li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("SKIP_TO_CONTENT");?>"><?php echo JText::_("SKIP_TO_CONTENT");?></a></li>
    </ul>

    Save both files and clean the cache

    To correct align the module ja_search open the /templates/ja_nex/css/template.css file

    and change the value at line 134

    #ja-search { bottom: 0px; top: 1px;}

    Let me know if it worked as you wish

    Yap Friend
    #506742

    Thank you for your prompt solutions, it work perfectly! :laugh:

    <em>@pavit 390725 wrote:</em><blockquote>Hi

    You can add the search module to the Mainnav if you like you can do as showed below

    Open this file

    templatesja_nexblocksheader.php

    copy and cut this code

    <?php if($this->countModules('search')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>
    <?php endif; ?>

    then open this file pluginssystemjat3jat3base-themesdefaultblocksmainnav.php and copy the code into

    <?php $jamenu->genMenu (1); ?>
    <!-- jdoc:include type="menu" level="1" / -->
    </div>
    <?php endif;?>
    <?php if($this->countModules('search')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>
    <?php endif; ?>

    <ul class="no-display">
    <li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("SKIP_TO_CONTENT");?>"><?php echo JText::_("SKIP_TO_CONTENT");?></a></li>
    </ul>

    Save both files and clean the cache

    To correct align the module ja_search open the /templates/ja_nex/css/template.css file

    and change the value at line 134

    #ja-search { bottom: 0px; top: 1px;}

    Let me know if it worked as you wish</blockquote>

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

This topic contains 3 replies, has 2 voices, and was last updated by  Yap 11 years, 2 months ago.

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