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

The Jacksonville SEO Company For Your Business

By Dave Fogel | December 27, 2022

Looking for a Jacksonville SEO Company? You have come to the right place.  We have put together some helpful information about SEO that will hopefully answer some of the most common questions about SEO. What is SEO? An SEO (Search Engine Optimization) company helps businesses improve their visibility on search engines like Google, Bing, and…

What Are The Most Popular Facebook Ad Sizes?

By Dave Fogel | December 27, 2022

The most popular Facebook ad sizes are: 1200 x 628 pixels (1.9:1 aspect ratio): This size is recommended for most types of ads, including single image, carousel, and video ads. 1080 x 1080 pixels (1:1 aspect ratio): This square size is recommended for image and video ads that will be displayed in the news feed.…

Where Do Facebook Ads & Instagram Ads Appear?

By Dave Fogel | December 27, 2022

Facebook ads appear in a variety of places across the platform, including in the newsfeed, on the sidebar, and in Marketplace. In the newsfeed, ads are displayed alongside other posts from friends, family, and pages that have been liked. Ads are also displayed on the sidebar, where they appear alongside other suggested pages and posts.…

Posted in

Dave Fogel

Leave a Comment