Help needed: Mainmenu and search on the same row

GK User
Sat May 05, 2012 7:32 pm
Hi,

I need to do some change to the header of the template due a request of my client.

She wants something like that:

Image

but i can only obtain this:

Image

i have changed the default.php code adding a module in the gkMainmenu and lowering the menu line of 100px in the override.css
but i'm not able ti put the module search on the same line of the mainmenu :(

this the actual code i've put up:
Code: Select all
<div id="gkMainMenu" class="gkWrap<?php if($this->modules('banner1 + pagetop + login + register + cart')) : ?> gkTopSpace<?php endif; ?>">
              <?php $this->loadBlock('logo'); ?>

<!--my modules start-->

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

<!--my modules end-->
           
                <?php if($this->getParam('show_menu', 1)) : ?>
             
              <?php
                 $this->menu->loadMenu($this->getParam('menu_name','mainmenu'));
                  $this->menu->genMenu($this->getParam('startlevel', 0), $this->getParam('endlevel',-1));
              ?>
              <?php endif; ?>
               
                <?php if($this->modules('search')) : ?>
                    <div id="gkSearch" >
                       <jdoc:include type="modules" name="search" style="<?php echo $this->module_styles['search']; ?>" />
                    </div>
              <?php endif; ?>
                </div>


Plz can You help me?

Rob.
User avatar
Fresh Boarder

GK User
Sat May 05, 2012 11:48 pm
Hi

I would be better to see it but try adding something like:

Code: Select all
#gkSearch {position: absolute; right: 0; top: 7px}


Cheers
User avatar
Platinum Boarder

GK User
Sun May 06, 2012 10:33 am
:D
Thank You, Seichinha!
It works!

I've only changed the top value to 107px to lower the search module to the mainmenu row. Ad works perfect in chrome, safari, firefox, explorer, Pc/Mac

Really thanks :)

Rob.
User avatar
Fresh Boarder


cron