2010-11-05

by Andreas Hermosillla
in Pure hacks

Edit Navigation Output

Code:

Instructions:

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.

Related links:

http://www.kriesi.at/archives/improve-your-wordpress-navigation-menu-output