Instantly share code, notes, and snippets.
@lonchbox - To allow a class for the current menu item, change the first line in start_el() to something like:
$output .= '<li'.($item->current ? ' class="current"':'').'>';
Sorry, something went wrong.
great stuff!! thanx for that...
is there a possibility of adding the level nr. ?
ok found it :)
just added to the li output from smhmic
'level-' . $depth .
(just dont know how to post a code here in github comment field :))
Thank you for the code. But I can't insert new classes in css classes (optional)
where do I put this 0n ?