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 Display Ads appear

By Dave Fogel | December 20, 2022

Google display ads can appear on a variety of websites and platforms that are part of the Google Display Network. The Google Display Network is a vast network of websites that have partnered with Google to display ads. When you run a display ad on the Google Display Network, your ad may appear on any…

Are Google ads expensive?

By Dave Fogel | December 20, 2022

The cost of Google Ads will vary depending on the type of campaign and the targeting options selected. However, Google Ads is generally not considered to be an expensive platform for businesses. The platform offers businesses access to powerful analytics and reporting tools, allowing them to track the performance of their campaigns and optimize their…

Can Google Ads be profitable?

By Dave Fogel | December 20, 2022

Yes, Google Ads can be very profitable for businesses. Google Ads is an effective platform for businesses of all sizes, providing them with the tools they need to reach their target audiences, engage with potential customers, and track the performance of their campaigns. With Google Ads, businesses can ensure that their ads are seen by…

Posted in

Dave Fogel

Leave a Comment