I have a main menu block which i am showing at top-navigation. I need to theme main menu but not sure how to apply classes to the root level menu items and sub menus.
i tried below snippet but not getting result. Can anybody tell me how to achieve this.$main_menu, 'attributes' => array( 'id' => 'main-menu', 'class' => array('links', 'navlist1', 'clearfix'), ), )); ?>
Below is the screenshot image which output i want to show in main-menu