Are you using Wayfinder for your menus? If so, you can place your div code inside the outerTpl chunk so that it only gets displayed if the submenu exists.
ahhh! yes didnt think about that.
Thanks i will try and get back to you.
cheers for the response
Clever solution. Remember though that if the side-menu has sub-menus too (&level greater than 1), i.e. if there’s more than one level of menus there, then it is advisable to use an innerTpl for those sub-menus. If you don’t, the outerTpl will be used as the outside container of those sub-menus and you will end up with extra divs.
cheers/k