How to access main_menu position?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Sep 04, 2013 10:51 am
Reply with quote
Report this post
Hi there,

I am using storebox template at http://www.ardaezer.com/bulut

I wanted to change the style of the main menu, so I installed a addon called maximenu, you can see it in the position of header_bottom. I want it to be displayed on the main_menu position, however there no such a position in module position selection.

Other notes, if anyone wants to help me with paid service to make storebox own main menu kinda looks like that, please do contact me. I would prefer using its own than using an extansion.
User avatar
Senior Boarder

GK User
Wed Sep 04, 2013 2:06 pm
Reply with quote
Report this post
main_menu is not a position to be used by modules as main menu itself is hard coded.

If you want to make it in to a module position you need to make below changes.

File: templates/gk_storebox/layout/default.php
Line: 96 to 103 which is below.
Code: Select all
<?php if($this->API->get('show_menu', 1)) : ?>
<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));
?>   
</div>
<?php endif; ?>


To

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


In module manager enter position "main_menu" manually in your menu modules position.

Alternatively see following document on how to add a module position so it can be selected in module manager.
https://www.gavick.com/documentation/jo ... -position/
User avatar
Platinum Boarder

GK User
Wed Sep 11, 2013 11:54 pm
Reply with quote
Report this post
Thanks for the answer! It is done you can view at:
http://www.ardaezer.com/bulut

Now how do I make it on center, I tried some css change but couldnt get to achiev it.
User avatar
Senior Boarder

GK User
Thu Sep 12, 2013 10:30 am
Reply with quote
Report this post
You need to set a width and then use margin-left and margin-right auto such as below.

Code: Select all
#gkMainMenu { float:none; width: 800px; margin-left: auto; margin-right: auto; }


See you around...
User avatar
Platinum Boarder


cron