1

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.

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.