Getting the Menu on WordPress 3.0 to Work with Thematic

One of the best new feature to come out of WordPress 3.0 is the menu editor. This drag-&-drop approach enables you to create custom navigation without being limited to the page or category hierarchy. Being able to add external links and categories to the menu, I am now able to produce a fully customized navigation solution for my projects with relative ease.

Update: The latest version of Thematic now fully supports the WP 3.0 menus

Ever since I updated to version 3.0 of WordPress, I’ve been wanting to get the new menu feature to work with Thematic. For several days I tried but failed miserably at every attempt. Now thanks to Theo Ribeiro, who posted about this on the Themeshaper forumsafter following this post from thematic4you, I was able to implement it on projects where I use Thematic.

The new WordPress menus allow you to easily drag-&-drop menu items

Copying the following code into your Thematic child theme’s functions.php will allow you to get the menu to work on Thematic.

Update: updated the snippet from what Theo Ribeiro just suggested from the comments below

// We Register the a new menu for the theme called "Primary Menu"
function register_primary_menu() {
register_nav_menu( 'primary-menu', __( 'Primary Menu' ) );
}
add_action( 'init', 'register_primary_menu' );</code>

<code>function change_menu_type() {
return 'wp_nav_menu';
}
add_filter( 'thematic_menu_type', 'change_menu_type' );

I made only one minor change by following the comment thread on the Themeshaper forums which allowed the navigation to work perfectly. Reading up on Function Reference/wp nav menu on the WordPress codex will also help get you up to speed on how the menu system works.

This entry was posted in Wordpress and tagged , , , , by Archon Digital. Bookmark the permalink.

About Archon Digital

His obviously biased, first-hand accounts of his elaborate and sinister plans for world domination has been going on forever. He is a designer for both print and web, and though he sometimes calls himself a blogger, he appears more obsessed with Technology, WordPress, HTML5 and CSS3 than with the actual act of blogging. Mostly kept awake by gobs of coffee, he resorts to tinkering with this site until something breaks.

28 thoughts on “Getting the Menu on WordPress 3.0 to Work with Thematic

  1. Pingback: archondigital

  2. Pingback: Pinapaitan

  3. Pingback: John Sullivan

  4. Pingback: Kabayan Exchange

  5. Pingback: Yaw Yan ArDigma

  6. Pingback: archondigital

  7. Pingback: Getting the Menu on WordPress 3.0 to Wor… « archondigital rewind

  8. Pingback: archondigital

  9. Pingback: HART (1-800-HART)

  10. Hey Archon,

    What I ended up using in my website, if you are using the latest Thematic SVN version is a much shorter and simpler code! Check it out (make you sure you download one of the latest versions first…

    best and thx for the mention!


    // We Register the a new menu for the theme called "Primary Menu"
    function register_primary_menu() {
    register_nav_menu( 'primary-menu', __( 'Primary Menu' ) );
    }
    add_action( 'init', 'register_primary_menu' );

    function change_menu_type() {
    return 'wp_nav_menu';
    }
    add_filter( 'thematic_menu_type', 'change_menu_type' );

    Theo Ribeiro recently posted..iPhone fashion shootMy Profile

    • I copied the code verbatim into my child theme’s functions.php file, and then went to create a menu (included three pages and the “Uncategorized” category, just to test), but it didn’t work. I am testing it on a sandbox server, WAMP. do I need to enable something in order to get it to work?
      Thanks for any help…

      • Was able to figure this out. The header extensions in my thematic theme spin out wp_page_menu in the access div which represents the top horizontal menu. When I changed that call to wp_nav_menu it worked.

        Thanks for posting this, it really helped, as am upgrading a site that uses thematic, and want to put categories in the menu. Much appreciated!

  11. Pingback: Pinapaitan

  12. Pingback: pinapaitan

  13. Hi Archon, oh boy have I got a lot to learn about using the codex. I’m SO not up to speed on this. I was looking for a plugin that will show the comment count at the top of a post and someone pointed me to the codex solution. I was too embarrassed to say “I have no idea how to do that”. (there I said it)

    I’m not using Thematic but I need to visit your blog more often so I can pick up on these fixes and not be so intimidated. Thank you!
    Ileane @ Basic Blog Tips recently posted..Hosted Blogs vs Free Ones- Is there Really a Difference and Which One Should You Opt ForMy Profile

  14. I tried it out and I have loved the custom menu feature in WordPress. I do a lot of customization and editing in wordpress. I find it more convenient to work now, seeing things look more organized and faster.

  15. I’m loving the custom menu option. In addition, it makes making a tab linking to another site a 30 second creation. It is really that pricelessa and I don’t use Thematic and so I didn’t provide an issue, I however recommend it. Worth adding in a function to be working. Appreciate the descriptive post concerning how to obtain the menu on 3.0 to operate. I be thankful!
    Lyla recently posted..LoveNuts Love BlogMy Profile

  16. I also like the new menu. It seems to save me a lot of time and it’s much easier to navigate. Once you know how to operate it it, you won’t turn back.

    Ed

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge