Couple of hours later ....
None of above links helped me to solved this. In this template menu left, right and logo are hardcoded in layout of the page so there is no way you could add module to it.
I solved this by hardcoding another postion:
1. Go to Extensions -> Template Manager -> Gk_steakhouse Details and Files
In templateDetails.xml file after
- Code: Select all
<position>tab9</position>
<position>tab10</position>
add
- Code: Select all
<!-- Custom Module Positions -->
<position>lang</position>
Then go to layouts/default.php and after
- Code: Select all
<div id="gkMainMenuRight">
<?php
$this->mainmenu->loadMenu($this->API->get('menu_name_right','mainmenu'));
$this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
add
- Code: Select all
<?php if($this->API->modules('lang')) : ?>
<div id="lang_switch">
<?php $this->layout->loadBlock('lang'); ?>
<jdoc:include type="modules" name="lang" style="none" />
</div>
<?php endif; ?>
Next go to Extensions -> Template Manager -> Styles -> "Name of your default style" and go to Addvanced settings tab.
Add this code to Custom CSS code.
- Code: Select all
#lang_switch {position:fixed;z-index:99999;top:0;}
.box li {border-bottom: none;}
@media (min-width: 1041px) {#lang_switch {right:10px;}}
@media (max-width: 1040px) {#lang_switch {left:10px;}}
I use flags to change language and this works for me.
It's a pity that such great templates from Gavick don't have such common thing like language switch module .....