If you want to hide sub menus all you need to do is not have them in the first place. Try going to the admin panel’s menus section and just remove the unwanted sub menus from the menu itself.
If you want to hide sub menus all you need to do is not have them in the first place. Try going to the admin panel’s menus section and just remove the unwanted sub menus from the menu itself.