Custom menu in WordPress

First of all create the menu in wordpress. Go to appearance then menus.
WordPress 3.0 Custom Navigation Menus

then simply paste the below line on the place where you want to show new custom menu

<?php wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘menu_id’ => ‘MENU’ ) ); ?>

In above code MENU is the name of our custom menu that we created above and ‘menu-header’ is the class that will apply on the this custom menu.

Advertisements
This entry was posted in Wordpress. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s