Last active
March 18, 2025 18:03
-
-
Save fieldoffice/c4c6df69f61b21769c6e to your computer and use it in GitHub Desktop.
Wordpress - add div wrapper around sub-menu
Really helpful - works great.
Any ideas on how I can give a different class to each level of sub, sub-sub-menu, etc. ?
Classes can be added directly in the WP Edit Menu to each menu item
This is true, and a good point but I was looking for an automated method.
Thanks for the ideas!
Please how to change ul and li to div
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Removed the hyphen from the class name and this works well for me in Wordpress 5.4.1. Thank you!