remove classes from nav_menu items
-
Hi,
I am using the nav_menu walker class for my drop-down menu. I’ve designed it so it doesn’t need to use any classes or ids, except those specified by the user when they create their menu. How can I remove the extraneous class names and ids from my menu? (they don’t actually do any harm, but it’s ugly markup).
I thought I would extend the Walker class and remove the parts of the function that write the classes, but I don’t know how. My problem is I need to keep the user specified classes.
Here is a function that has the class stuff in it. Can someone help me remove the wordpress generated classes and ids?
[Code moderated as per the Forum Rules. Please use the pastebin]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘remove classes from nav_menu items’ is closed to new replies.