Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thank!! I try but still doesn't add any class.When I use abc_menu_tree__menu_main_menu()it doesn't add any class.But when I tryabc_menu_tree__main_menu() it add class but affecting all the ul element.
Thank!!My menu name is main_menu so write this functions in template.php file am I right.function abc_menu_tree__main_menu(&$variables){ return '<ul class="menu">'.$variables['tree'].'</ul>'; } function abc_menu_tree__menu_top_menu(&$variables){ return '<ul class="menu myclass">'.$variables['tree'].'</ul>'; }
Thank!!Yes I clear all the cache.My theme name is "abc" so I called the function abc_menu_tree__menu_top_menu(&$variables).Does this function require to override working only for main menu.