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

What about free websites?

By Dave Fogel | September 3, 2020

There are a few options out there to design your website for free. Companies like WIX come to mind. Keep in mind that with WIX you never own your website. You are stuck with them forever. It still takes a lot of time to design a site, and if you are not a designer, chances…

How much does it cost for a website?

By Dave Fogel | September 3, 2020

Great question! We hear it all the time. Websites can range from $500 to $100,000K+. It all depends on your needs. For us, websites typically range from $1,500 and up. That might sound like a lot, but if you look at some of our competition in Jacksonville, we think you will find it very competitive.…

4 Reasons You Should Own Your Own Domain

By Dave Fogel | September 15, 2015

If someone is starting a new website, or even looking to create a second website, one of the most popular requests we get is to help them register their domain. Of course we can do this for you, but is it a good idea? We think not and here is why. 1. Your domain name…

Posted in

Dave Fogel

Leave a Comment