How To Add Custom Menu Classes Using Walker Function
How would I utilize a Walker (http://codex.wordpress.org/Function_Reference/wp_nav_menu#How_to_add_a_parent_class_for_menu_item) to add a class to the sub menu? My menu code needs to look like this (stripped down to just what I need to add):
<ul> <li class="dropdown"><a href="#">Parent Page</a> <ul class="dropdown-menu"> <li><a href="#">Sub Page</a></li> </ul> </li> </ul>
Any insights would be greatly appreciated!
- The topic ‘How To Add Custom Menu Classes Using Walker Function’ is closed to new replies.