Change "search" position

GK User
Tue Sep 04, 2012 7:40 pm
Hello,

I want to put the "search" tool in my main menu. Can you tell me how please ?

My english is bad so here is a picture :

Image

Thanks,
Johann
User avatar
Fresh Boarder

GK User
Wed Sep 05, 2012 12:49 am
Hi

Please follow my instructions:

1) Open ../layouts/blocks/logo.php and find this fragment:

Code: Select all
<?php if($this->modules('search')) : ?>
<div id="gkSearch">
   <jdoc:include type="modules" name="search" style="<?php echo $this->module_styles['search']; ?>" />
</div>
<?php endif; ?>


Erase it

2) Open ../layouts/default.php and after this line:

Code: Select all
                    $this->menu->genMenu($this->getParam('startlevel', 0), $this->getParam('endlevel',-1));

                ?>


add this one:

Code: Select all
<?php if($this->modules('search')) : ?>
<div id="gkSearch">
   <jdoc:include type="modules" name="search" style="<?php echo $this->module_styles['search']; ?>" />
</div>
<?php endif; ?>


3) Go to template parameters > Advanced Settings and enable override css.

4) Open ../css/override.css file and add this line:

Code: Select all
#gkSearch {margin: -44px 12px 0 0!important;}


Done ;)
User avatar
Platinum Boarder

GK User
Wed Sep 05, 2012 7:20 am
Thank you very much Sir, I will test this solution
User avatar
Fresh Boarder


cron