FoundationNavWalker for WordPress

Zurb’s Foundation rocks. It’s a really simple framework to quickly build sites on, with less basic styling than Bootstrap, and one of my favourite things is the built in off-canvas menu.

When trying to build the menu into a WordPress site I was working on recently, I struggled to get it right with wp_nav_menu‘s default functionality. After a bit of Googling, and some time in Sublime Text, I built a very basic version of what I needed.

At the moment, it does just about what I need, but I’d love to improve it. I’ve open-sourced the code on GitHub so if you have any improvements, fork it!

Here’s the code; fork away!


3 responses to “FoundationNavWalker for WordPress”

  1. sungwon says:

    Thanks for this!

Leave a Reply

Your email address will not be published. Required fields are marked *