This forum is for assistance with theme development.

Need help to display the main menu in one row (horizontal) and as a dropdown

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


Need help to display the main menu in one row (horizontal) and as a dropdown

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


Need help to display the main menu in one row (horizontal) and as a dropdown

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


Help with printing out profile fields, depending on the profile users role

Hello all, I'm trying to print out specific profile fields depending on the profile users role using the code below in user-profile.tpl.php of our theme.

Style / template individual field elements of a full content page?

Hi,

i made this page with views.

When you click on an item you get the 'full' page content.

How do i style the 'the full page content' of this page for example ?

So how do i style and template the individual field elements of a full content page?

Thanks a lot.

Is it possible to access every element of a certain content type or view?

Hi guys
I am developing a theme and I need to access every individual element of a content type/view separately, for example I have a content type called Product and it might have SKU , Image , Price and etc.
I have a block called product to display this view or content type and I want it to have thisSHAPE

it is easy to design HTML for this block but is it possible to insert individual elements inside rectangles?

tnx

Pages

Subscribe with RSS Subscribe to RSS - Theme development