Have you ever built a website for a client and a few weeks later they come back to you and ask for more pages to be added to the menu?
Great, hopefully they are paying you by the hour. Now you have to redesign the whole navigation of the website.
If you built the website with WordPress, you will instantly be able to add a page or two (or more) just by well… adding pages.
(Maybe you want to change your billing rates to per update…)
And if you want more control over the pages, drop down lists of pages, and more, there’s my favorite WordPress 3.0 feature…
Menus!
WordPress 3.0 Menus gives you complete control over the Navigation Menus in your themes.
- Using the interface, you will first create a menu by giving it a name.
- Then if your theme natively supports menus, you can choose to use your custom menu.
- Add links to other websites
- Add pages
- Add categories of posts
- Click and drag to change the order and level of each item
- And save. Viola!!! You have just created a custom menu for your site.
(Click the picture to embiggen)
[box type=”info”]If your theme doesn’t support menus, don’t worry. Place the following code in the functions.php file in your template.
function add_menus() { register_nav_menus( array( ‘main_nav’ => ‘The main menu’, )); } add_action( ‘init’, ‘add_menus’ );
Then add this code where you want the menu to appear.
wp_nav_menu(array(‘menu’ => ‘MENUNAME’, ‘container’ => ‘ul’, ‘menu_id’ => ‘YOUR_MENUS_ID’)); [/box]
This is my favorite addition to WordPress 3.0.x
🙂
arlen