Adding WordPress 3.0 Menu support to your older site

I have come across this a few times when updating older sites to WordPress 3.0 that the fancy new menu system in WP3.0 doesn’t work. Fortunately, this is an easy fix.

First off, you will be editing your functions.php file, so make a backup!

Now, add this code to your funtions.php file:

add_action( ‘init’, ‘register_my_menus’ );
function register_my_menus() {
register_nav_menus(
array(
‘menu-1’ => __( ‘Menu 1’ ),
‘menu-2’ => __( ‘Menu 2’ )
)
);
}

You can name the menu’s whatever you like. ie Primary, Secondary.

Next step is to open your header.php file and replace what you have with this new code:

‘menu-1’ ) ); ?>

For me, I was using pixopoints multi level plugin, so I simply replaced that code with the call above.

Now you are free to build your menu’s using the advanced features of wp3.0

Quick WP Menu Tip

By Dave Fogel | January 10, 2011

If you do not want the Parent Menu items clickable, create a custom menu item and link it to “#” (no quotes). Then put your other menu items under that one.

Creating sidebar widgets for Menus in WP 3.0

By Dave Fogel | January 10, 2011

Creating Side Bar widgets for Menus in WordPress 3.0 So you want to add sidebars to your website and do them dynamically. I am sure there are many ways to do this, but here is how I do it. You need FTP access to your wordpress site to do this. I use Dreamweaver to edit…

Upgraded to WordPress 3.0

By Dave Fogel | June 18, 2010

We have just upgraded the site to WordPress 3.0. If you see anything broken, rest assured we are working on fixing it. We look forward to all wordpress 3.0 has to offer the community and your websites.

Posted in

Dave Fogel

Leave a Comment