Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Joel Rivera
Joel Rivera
29,401 Points

Walker Class

Are there any plans to have a tutorial on the Walker Class and what it's used for and how best to implement it?

Is the Walker class necessary for the drop down effect and hover effect in menus when using frameworks like Bootstrap or any other framework?

2 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi! No plans to cover the Walker class offhand.

You definitely don't need it to do drop down menus though. You can use the wp_nav_menu for that :)

Joel Rivera
Joel Rivera
29,401 Points

Thanks Zac, is there anything else I need to do with the CSS to make the drop down functional? I was using the wp_nav_menu function with a script I found online for responsive menus that had good reviews and for some reason when I did that the sub menu was just on the right side of the parent menu item. I was using this menu http://responsive-nav.com/ . I'm trying to make a theme that is extremely light weight but has the nice functionality of a responsive drop down nav.

I'm not sure if it was my implementation of it or if there is anything further I need to do with the css to make it work. I know you have a lot on your plate and I don't anticipate you can review the actual outside third party script. I'm just wondering if when I create a theme and use wp_nav_menu am I supposed to do anything else with the css or is it just supposed to work?

Thanks again for your help.

Chris Dziewa
Chris Dziewa
17,781 Points

Make sure you didn't use the strip_tags function from the tutorial otherwise you'll end up with just the a tags instead of the other tags that normally result from the wp_nav_menu function. I was stumped on this for weeks!