Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I added this to my theme code:
<?php print menu_access_menu_tree('primary-links'); ?>
That menu contains some menu items that have child items. How do I limit the levels it prints? I would like to divide my menu to main menu on top of the page and child menu on the right sidebar.
I'm also using Menu Blocks.