Title: Walker Class Help
Last modified: August 20, 2016

---

# Walker Class Help

 *  [designerken](https://wordpress.org/support/users/kcharity/)
 * (@kcharity)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/walker-class-help/)
 * I am trying to understand the walker class and am completely lost.
 * I am trying to achieve this:
 * _[[code moderated – please use the pastebin](http://codex.wordpress.org/Forum_Welcome#Posting_Code)]_
 * It seems like it should be straight forward. But I am lost. All the elements 
   get the ‘leaf’ class unless they are a parent of a child element. The first parent
   or the first child get ‘first’ added to the class. The last parent or child get‘
   last’ added to the class. All parents get only ‘expanded’ as their class. If 
   the item is the active page then the a tag gets the class “active”.

Viewing 1 replies (of 1 total)

 *  Thread Starter [designerken](https://wordpress.org/support/users/kcharity/)
 * (@kcharity)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/walker-class-help/#post-2560063)
 * Here is the link to the pastebin then:
 * [http://pastebin.com/6fTw1Yut](http://pastebin.com/6fTw1Yut)
 * Any help would be appreciated.

Viewing 1 replies (of 1 total)

The topic ‘Walker Class Help’ is closed to new replies.

## Tags

 * [li](https://wordpress.org/support/topic-tag/li/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [navigation](https://wordpress.org/support/topic-tag/navigation/)
 * [ul](https://wordpress.org/support/topic-tag/ul/)
 * [Walker](https://wordpress.org/support/topic-tag/walker/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [designerken](https://wordpress.org/support/users/kcharity/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/walker-class-help/#post-2560063)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
