-
AuthorPosts
-
wan fadli Developer
wan fadli
- Join date:
- January 2011
- Posts:
- 98
- Downloads:
- 2
- Uploads:
- 28
- Thanks:
- 31
- Thanked:
- 2 times in 1 posts
May 12, 2011 at 8:30 am #163902Dear 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 Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
May 12, 2011 at 10:23 am #390942Yes you will need to modify mainnav.php block to include search in it.
wan fadli Developerwan fadli
- Join date:
- January 2011
- Posts:
- 98
- Downloads:
- 2
- Uploads:
- 28
- Thanks:
- 31
- Thanked:
- 2 times in 1 posts
May 13, 2011 at 4:11 am #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 Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
May 13, 2011 at 6:52 am #391047Go 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..
1 user says Thank You to himangi for this useful post
wan fadli Developerwan fadli
- Join date:
- January 2011
- Posts:
- 98
- Downloads:
- 2
- Uploads:
- 28
- Thanks:
- 31
- Thanked:
- 2 times in 1 posts
May 13, 2011 at 8:06 am #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!) 😎
-
AuthorPosts
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