Edit Navigation Output

This snippet gives you finer control of the output of WordPress navigation menus

This snippet gives you better control of the output of WordPress navigation menus.

Place the snippet in your themes function.php file and modify the PHP to get the output you want. In this example the class checks if there is an description and prints it.

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!