test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • wan fadli Developer
    #163902

    Dear JA,

    How can i put search box same line with the main navigation bar (put inside the mainnav block), same like the JA Minisite.

    thank you..

    🙂

    himangi Friend
    #390942

    Yes you will need to modify mainnav.php block to include search in it.

    wan fadli Developer
    #391044

    <em>@himangi 240037 wrote:</em><blockquote>Yes you will need to modify mainnav.php block to include search in it.</blockquote>

    Thanks Himangi… can you explain in details how to put the searchbox beside the navigation bar..?

    himangi Friend
    #391047

    Go to templates/ja_portfolio/blocks, open header.php and cut following code and save the file. <blockquote><?php if($this->countModules(‘search’)) : ?>
    <div id=”ja-search”>
    <jdoc:include type=”modules” name=”search” />
    </div>
    <?php endif; ?></blockquote>

    Open mainnav.php and paste above code after <blockquote><?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?></blockquote>

    Your new code in mainnav.php will look like <blockquote><?php $this->genBlockBegin ($block) ?>
    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
    <?php if($this->countModules(‘search’)) : ?>
    <div id=”ja-search”>
    <jdoc:include type=”modules” name=”search” />
    </div>
    <?php endif; ?>
    <?php $this->genBlockEnd ($block) ?></blockquote>

    Save the file and check that the search box appears on the same line as main navigation. You need to change stylesheets to make the menu and search box look good in the single row..

    wan fadli Developer
    #391064

    <em>@himangi 240196 wrote:</em><blockquote>Go to templates/ja_portfolio/blocks, open header.php and cut following code and save the file.

    Open mainnav.php and paste above code after

    Your new code in mainnav.php will look like

    Save the file and check that the search box appears on the same line as main navigation. You need to change stylesheets to make the menu and search box look good in the single row..</blockquote>

    Thanks again Himangi.. very useful..(thumbs up!) 😎

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

This topic contains 5 replies, has 2 voices, and was last updated by  wan fadli 13 years, 6 months ago.

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