I need some extra classes in my wp_page_menu() output
-
Hi
I know who using wp_page_menu i can get something like this
<div class="menu"> <ul> <li><a href="">Home</a></li> <li class="page_item page-item-1"><a href="" title="About">About</a></li> <ul> <li class="page_item page-item-3"><a href="" title="Our Business">Our Business</a></li> <li class="page_item page-item-4"><a href="" title="Our Staff">Our Staff</a></li> </ul> <li class="page_item page-item-2"><a href="" title="Contact Us">Contact Us</a></li> </ul> </div>
I need to modify output of the function to get a class like has_children in the
<li>
who has a nested submenu.Or at least and id or class with the name of any page in the result.
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘I need some extra classes in my wp_page_menu() output’ is closed to new replies.