Quick tips: Enable menu support for your themes in WP 3.0

Note: Updated with the latest way of doing nav menus, uses register_nav_menus instead of add_theme_support

You may be aware that a new major version of WordPress is coming out soon. Version 3.0 will bring some features like a new menu builder.

The menu builder will allow you to create a menu from any categories, pages and links, order them by drag and drop, create submenus, etc. If you are a WooTheme user you are already using this menu builder so you now what I am talking about.

Now to make you theme compatible with this new feature there are small step you need to take:

1 Tell WP your theme uses the menu builder

Add this simple line to your functions.php file

[snippet-menu]

Use the new function

Then Use the wp_nav_menu in your header:

[snippet-nav menu]

And that’s it. I know it’s short but that’s why it’s called a quick tip :p

8 thoughts on “Quick tips: Enable menu support for your themes in WP 3.0”

  1. You never know when you’ll need to update an old theme. Thanks for posting a fresh and current tip on menu support for WordPress. Quick easy (and nice-looking site too)!

    Thanks

  2. ARRRGH! Your solution was so simple! I couldn’t unwrap the div from my menus, but your implementation worded properly. You’ve completely exploded my brain. At least Now I can go to bed.

  3. thank you for writing this up. everywhere ive gone to get help on this has given me some bull****, convoluted answer that leaves something out, or tells me to replace something they’ve written with something else, which they don’t explain! Thank you!

  4. This is the quickest but yet the coolest and fater way to add custom menu support to your wordpress theme. I couldn’t believe in my eyes when I saw it working.

    Thumbs up!

Leave a Reply

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