Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • amilks Friend
    #149406

    Hello,

    I am building a site using the Rasite template and the client wants the search box to be in the navigation bar, not below it. I changed this:

    #ja-search {
    background: url(../images/search-bg.png) no-repeat center left;
    position: absolute;
    bottom: 20px;
    right: 15px;
    height: 30px;
    width: 255px;
    padding-right: 20px;
    }

    #ja-search {
    background: url(../images/search-bg.png) no-repeat center left;
    position: absolute;
    top: -35px;
    bottom: 20px;
    right: 15px;
    height: 30px;
    width: 255px;
    padding-right: 20px;
    }

    and it does put the search in the navigation bar, but it is covered by the navigation bar, SO here is the question.... How do I get the search box to go OVER the nav bar, not HIDDEN under the nav bar?

    Thanks!
    }

    Saguaros Moderator
    #335912

    Hello Andrew Milks!

    here is the solution for you :

    1) pls open the file : templatesja_rasitelayoutsblocksheader.php and remove the following code:
    [PHP]

    <?php if($this->countModules(‘search’)) : ?>
    <div id=”ja-search”>
    <jdoc:include type=”modules” name=”search” />
    </div>
    <?php endif; ?>
    [/PHP]

    2) open the file: templatesja_rasitelayoutsblocksmainnav.php and find codes:
    [PHP]<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu ($this->getParam(‘startlevel’,0), $this->getParam(‘endlevel’,-1)); ?>[/PHP]

    and replace;
    [PHP]
    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu ($this->getParam(‘startlevel’,0), $this->getParam(‘endlevel’,-1)); ?>

    <?php if($this->countModules(‘search’)) : ?>
    <div id=”ja-search”>
    <jdoc:include type=”modules” name=”search” />
    </div>
    <?php endif; ?>
    [/PHP]

    3) open the file: /templates/ja_rasite/css/template.css and find codes:

    #ja-search {
    background: url(../images/search-bg.png) no-repeat center left;
    position: absolute;
    bottom: 20px;
    right: 15px;
    height: 30px;
    width: 255px;
    padding-right: 20px;
    }

    replace:

    #ja-search {
    background: url(../images/search-bg.png) no-repeat center left;
    position: absolute;
    bottom: 10px;
    right: 15px;
    height: 30px;
    width: 255px;
    padding-right: 20px;
    }

    Good luck

    amilks Friend
    #336496

    Wahoo! It worked great.

    Thanks!

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

This topic contains 3 replies, has 2 voices, and was last updated by  amilks 14 years, 7 months ago.

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