Devin Walker is a San Diego based entrepreneur, developer and designer.

WordPress Menu Item Descriptions with Custom Walker

Posted on Sep 6, 2011 in Coding, WordPress | No Comments

If you’ve been developing on WordPress, then you may have had to use WP 3.0’s Menus:

Let’s create a custom description walker…

Add this Class to your theme’s functions.php file

You will need to add this class to your theme’s function.php file and customize to suit your needs:

Change the Depth of Menu Description

To change the depth you will need to modify the following lines of code to output the descriptions for submenu items:

Change to the following for Submenus