1. put the divs in the MenuManager template inside the {if $count > 0} condition:
Code: Select all
{if $count > 0}
<div id="submenuWrap">
...
</div>
{/if}
So only if there are menu items found by the MenuManager the div will be
created by the menu template itself.
(this is what Dr.Css suggested and would be the very easiest way)
2. Install CGSimpleSmarty module and do this in your page template:
Code: Select all
{if $cgsimple->has_children()}
...
{/if}