Created
June 29, 2011 08:49
T5_Nav_Menu_Walker_Simple
@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 :))
Hi,
Thank you for the code. But I can't insert new classes in css classes (optional)
where do I put this 0n ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanx for this gist, it help me a lot, but how can I also use the current-menu-item class in the