WordPress.org

Support

Support » How-To and Troubleshooting » Walker Class Help

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]

    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)
Viewing 1 replies (of 1 total)
  • The topic ‘Walker Class Help’ is closed to new replies.