Placing the search box on the top mega menu - JoomlArt
30% OFF for JA Admin Template with free JA User module & JA Google Analytics Reports Module - Coupon: JADMIN30 Buy Now!
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • morsagmon Friend

    Using Joomla 1.7.3 with JA Purity II.
    I’d like to place the search box on the top mega menu.
    My preference is to have it always justified to the LEFT, regardless of the number of menu entries (this is a RTL menu, so, starting from right to left).
    If you can guide me on how to do this – great!
    Since I couldn’t find a way to do this, I will probably compromise for putting the search module as the last menu entry (no left-justified). I managed to do this by way of adding a “text separator” item, with “show title” = NO and “group” = YES. HOWEVER, In addition to the search box showing correctly on the menu, there’s a thin white line added below that causes a whole stripper to be added below the menu – see attachment.
    How do I get rid of this white line?


    1. search_in_megamenu_white_line
    khoand Friend

    You add the code into /templates/ja_purity_ii/blocks/mainnav.php

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


    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
    You add the code into /templates/ja_purity_ii/css/template.css

    #ja-search1 {
    position: absolute;
    left: 0;

    You set position of search menu is search1

    morsagmon Friend

    Thank you Khoand!
    We’re getting there.
    See in the attached, the searchbox is placed BELOW the megamenu. How do we move it up?

    1. search_in_megamenu_below
    morsagmon Friend

    OK, solved it.
    I added this to the template.css file:

    top: 9px;


    Darren Scott Friend

    Is this the same config for JA Tiris? Need to add a search module to the menu bar.

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

This topic contains 5 replies, has 3 voices, and was last updated by  Darren Scott 4 years, 3 months ago.

You must be logged in to reply to this topic.