You need to edit few files to do it correctly:
/templates/gk_gamenews/templateDetails.xml
after line 86 add:
- Code: Select all
<position>searchpos</position>
so it should look like:
- Code: Select all
<position>topnav</position>
<position>footer_nav</position>
<position>topmenu</position>
<position>searchpos</position>
<!-- STANDARD Module Positions -->
<position>sidebar</position>
<position>mainbody</position>
Next edit the file:
/templates/gk_gamenews/layouts/default.php
search for line number 82 and add there:
- Code: Select all
<?php if($this->API->modules('searchpos')) : ?>
<div id="searchpos">
<jdoc:include type="modules" name="searchpos" style="" />
</div>
<?php endif; ?>
so it should look like:
- Code: Select all
<div id="gkMainMenu">
<?php
$this->mainmenu->loadMenu($this->API->get('menu_name','mainmenu'));
$this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
<?php if($this->API->modules('searchpos')) : ?>
<div id="searchpos">
<jdoc:include type="modules" name="searchpos" style="" />
</div>
<?php endif; ?>
</div>
Now You have new position named searchpos, but still to finish it all, You need to edit few styles:
/templates/gk_gamenews/css/menu/menu.css
changee starts at line numbe 11:
- Code: Select all
/* Base for all menus */
#gkMainMenu {
clear: both;
margin: 0;
padding: 0;
width: auto;
}
#gkMainMenu .gkMenu {
display: block;
}
to:
- Code: Select all
/* Base for all menus */
#gkMainMenu {
position:relative;
clear: both;
margin: 0;
padding: 0;
width: auto;
}
#gkMainMenu #searchpos {
position: absolute;
top: 6px;
right: 10px;
z-index: 1010;
}
#gkMainMenu .gkMenu {
display: block;
}
Now You can put search module in newly created seachpos module area.
Please write back If You were able to make those changes.