My website has a sidebar with the 2nd level menu items related to that category.
But if the user is on a 1st level page (example.com/page-name/) where are no sub pages there is nothing and it looks a bit ugly :)
I want to show all first level menu items. But how can I detect if it's a first level with no sub pages?
i think it is really simple, but can't get my head around it :)