I want to tidy the menu class and remove the <li> ID tags, but return the class which is added by CSS Classes (optional) and current class.
Use a custom walker, change the content in function start_el().
I have written a sample walker you can start with, you have to re-add the classes tough.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the
terms of service.
1 year ago
4 months ago