Instantly share code, notes, and snippets.
Thanx for this gist, it help me a lot, but how can I also use the current-menu-item class in the
Sorry, something went wrong.
@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"':'').'>';
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 ?