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
Blocking Spam Bots
If you frequently look at your Google analytics and notice you all of a sudden have a huge increase in traffic, you might start getting really excited. The site is finally taking off! Or is it? There is a good chance that bots have started hitting your website. So how can you find out? First…
WordPress Easy Modal and Gravity Forms
If you are looking to create a modal box on your site with a gravity form, there is one issue we have run into a few times that can cause you a lot of headaches. The people at Gravity Forms recommend using Easy Modal for modal boxes with WordPress. In the first instance, we were…
Is your site mobile friendly
Making sure your website is mobile friendly is now more important than ever. But how can you be sure you are mobile friendly? Google has created a testing tool so you can test for yourself. It is pretty simple to use. Just type your website into the tool and see what happens. If your mobile…