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

Will Facebook ads still be effective in 2023?

By Dave Fogel | December 20, 2022

Yes, We predict Facebook Ads will still be effective in 2023. Facebook has made several changes to its advertising platform since the iOS 14 update that caused them to lose most of its tracking ability when users left the platform.  Long story short, FB could no longer see where users went after they left the…

Why should you use Google Ads?

By Dave Fogel | December 20, 2022

Google Ads is an advertising platform created by Google that allows businesses to reach potential customers and increase their online visibility. It is a powerful tool that can be used to target specific audiences and promote products and services. Google Ads enables businesses to create engaging ads that can be delivered to the right people…

Why Google Ads is better than Facebook Ads

By Dave Fogel | December 19, 2022

Google Ads offers businesses a number of advantages over Facebook Ads. Google Ads allows businesses to target specific locations and audiences, allowing them to reach the people that are most likely to be interested in their services. Additionally, Google Ads offers businesses more control over their campaigns, allowing them to adjust their campaigns in real-time…

Posted in

Dave Fogel

Leave a Comment