• Jun
  • 07
  • 2012

Want to add custom menu in WordPress ?

Today I want to share with you that how to use custom menu section in wordpress 3.0 or later.

I think most of people heard about this but didn’t know how to use this. Today I want to share with you the usage guide of custom menu section.

First of all I want to clear with you that this is a new feature in wordpress 3.0 and later version. Using this feature you can create your own navigation for frontend with dropdown facility. Let us see the steps of how to do this :

1) First of all go to your admin->appearance->menus.

2) Create new menu using by clicking on the “+” sign as shown in the image.

3) When you add new menu, you can see added menu in left “Primary Navigation”. Now you can add menu items from “custom links”, “Pages” and “Categories”.

4) When you add menuitems, you can see that item in right side. You can see “Yahoo” in above image. Its an external link menu item. If you want to make any menu item as achild page of any other menu item, just drag that menu link and place below parent. See above image. in Above image, “uncategorized” is a child of  “yahoo”.

5) You can create as many menus as you want. But you can show menus as compatible with your theme.You can create as many menu as you want.

6) You can call your menu wherever you want by just placing this one line code.

<?php $defaults = array( 'theme_location'  => ,
'menu'            => ,
'container'       => 'div',
'container_class' => 'menu-{menu slug}-container',
'container_id'    => ,
'menu_class'      => 'menu',
'menu_id'         => ,
'echo'            => true,
'fallback_cb'     => 'wp_page_menu',
'before'          => ,
'after'           => ,
'link_before'     => ,
'link_after'      => ,
'items_wrap'      => '
<ul id="%1$s" class="%2$s">%3$s</ul>

'depth'           => 0,
'walker'          => );
<?php wp_nav_menu( $args ); ?>

You can select arguments as per your need. Don’t forget to include the name of the menu in the “menu” argument.

If you like this post or if you have any suggestion or any confusion then just comment me. I will defenately solve your issue.

Ravi Makhija

Ravi Makhija

A writer, an Entrepreneur. Curious about the internet of everything. Interested in the cutting edge landscape of mobile apps and SAAS products. Blogs for Guru Technolabs - A Mobile App Development Company.

Popular Blogs

Among the many digital tools that are being used with increasing frequency, the one that has the greatest...

Having a Best Website like opening a door and inviting…

In this internet era, the business website is the most…

The Live chat is the common thing now days, if…

Let's Discuss a Project

Please share your unique idea or project requirement with us, our business concern person will get back to you with further details.