I'm creating custom theme. I am struggling to create main menu with drop down. I created a menu with custom code:
<?php $main_menu_tree = menu_tree(variable_get('menu_main_links_source', 'main-menu')); print drupal_render($main_menu_tree); ?>
But it doesn't working as I want. I need to add class in that particular
<UL> tags. How can I achieve that?
I tried to Hook custom function in templates file. But no luck. How to call custom function into view page?
Below are some more screenshots.
Main menu with correct:
Menu with Wrong:
How to call custom menu design in custom theme?