0

I am creating a zen sub-theme and I edited the menu called "Main menu" to have on root level item that has 5 children (second level). The root level item shows up fine but none of the children are ever output in the HTML.

I verified they are all enabled. Just not sure why they aren't being sent back to the client. Does the Zen theme need some modification to support menus that are deeper than one level?

1
  • The parent item is set to expanded in the menu settings, right? Feb 7, 2013 at 4:21

2 Answers 2

2

Edit your page.tpl.php

Edit the section where the primary_links are printed to show the whole primary links menu instead of only showing the first level links of your primary links menu.

<?php if (isset($primary_links)) { ?>
     <div id="primary_menu">
<?php print theme('menu_tree',variable_get('menu_primary_menu',0)); ?>
     </div>
<?php } ?>

In Drupal 6

<?php
$menu_name = variable_get('menu_primary_links_source', 'primary-links');
print menu_tree($menu_name);
?>

Drupal 7

<?php

    $menu_name = variable_get('menu_main_links_source', 'main-menu');
    $tree = menu_tree($menu_name);
    print drupal_render($tree); 
?>
0

Use Superfish or Nice Menus module to show 2nd level menu items.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.