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

Adding An Animated Icon To Genesis Responsive Menu

By Dave Fogel | June 23, 2015

In this tutorial, we are going to be adding an animated icon and a responsive menu to the genesis starter theme from combining two different sources. For the responsive menu, we are going to be using the Genesis Responsive Menu 2.0 created by Ozzy Rodriguez.  The full tutorial is located here. You can download the…

What Does Your Website Say About Your Business

By Dave Fogel | May 29, 2015

OK, let’s get this out of the way first – I might be a little biased since I build websites in St. Augustine and Jacksonville for a living. Now that that is out of the way let’s talk about websites. For me, a website is a reflection of your business, just like your storefront or…

Advantages of working with a St. Augustine Web Designer

By Dave Fogel | May 22, 2015

Yes, I realize you can work with anyone all over the world when it comes to finding someone to build your website.  Some people really like the idea of working with someone from India, mainly because they get their website for a fraction of what it costs to use someone in the USA. But when…

Posted in

Dave Fogel

Leave a Comment