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

Which Google Ads campaign should i use for my Business?

By Dave Fogel | December 18, 2022

Many people associate Google Search Ads, but there are several different types of Google Ads campaigns that you can use for your business, and the best option for you will depend on your specific goals and target audience. Here are a few options to consider: Search ads: Search ads appear in the search results when…

Are Google Ads worth it for small business?

By Dave Fogel | December 17, 2022

Yes, Google Ads can be a great option for small businesses. Google Ads allows businesses to reach their target audiences and engage with potential customers, increasing their online visibility. Additionally, Google Ads can be tailored to the specific needs of small businesses, allowing them to target the right people and optimize their campaigns accordingly. Google…

Are Google Display Ads as effective as Google Search Ads?

By Dave Fogel | December 16, 2022

Google display ads and Google search ads can both be effective at reaching potential customers and achieving your marketing goals, but they work in different ways and may be more effective in certain situations. Here are some key differences between Google display ads and Google search ads: Placement: Google search ads appear in the search…

Posted in

Dave Fogel

Leave a Comment