Instead of using the $ main_menu variable, you can use the main menu block , which is created using the menu.
If you place the Main Menu block in the Navigation area in the admin / structure / block area, printing rendering ($ page ['navigation']) in page.tpl.php will print the full menu, including its submenu (children).
Just make sure you check the "Show as advanced" option in the parent menu link.
Finally, delete the material "print theme", otherwise you will get a double menu.
page.tpl.php will look something like this:
<?php if ($page['navigation']): ?> <div id="navigation"><div class="section clearfix"> <?php print render($page['navigation']); ?> </div></div> <?php endif; ?>
m4rinos
source share