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

Where Do Google Ads Appear?

By Dave Fogel | December 14, 2022

Google Ads can appear in a number of different places, depending on the type of ad you’re running and the targeting options you’ve selected. Here are a few places where Google Ads may appear: Search results: When someone searches for a keyword or phrase related to your business, your ad may appear at the top…

How Google Ads Help Small And Medium Sizes Businesses

By Dave Fogel | December 12, 2022

Google Ads is a platform that allows businesses to advertise their products or services through Google’s search engine and other properties, such as Google Maps and YouTube. This platform, formerly known as Google AdWords, is a powerful tool that can help small and medium-sized businesses (SMBs) reach new customers, increase brand awareness, and drive sales.…

Are Google Ads free?

By Dave Fogel | December 10, 2022

No, Google Ads is not free. Google Ads is an advertising platform that businesses use to reach potential customers and increase their online visibility. Google Ads charges businesses for the clicks, impressions, and conversions that are generated by their ads. The cost of the ads depends on the type of campaign and the targeting options…

Posted in

Dave Fogel

Leave a Comment