Hi all,
I am developing a theme from fusion_core and facing a problem with the main menu (ie. the top menu). Right now it has 2 main items, one is Shopping and another is Services. In Services, there are 2 other items, one is Mobile and another is Cash. I'm using the following code in the file page.tpl.php to print the main menu.
print theme('links__system_main_menu', array(
'links' => $main_menu,
'attributes' => array(
'id' => 'gwt-main-menu',
'class' => 'hidenav',
'role' => 'menu',
),
'heading' => array(
'text' => t('Main menu'),
'level' => 'h2',
'class' => array('element-invisible'),
),
));
What I expect are
- The main menu items must be displayed on one-row only.
- The main menu item Services must be displayed like a drop-down menu and will show its sub menu items (ie. the Mobile and Cash menu items) only when user moves mouse to it.
In other words, it must be something like this