Posts tagged as:

AJAX

Dropdown menus in WordPress theme

by John Ankarström on May 24, 2009

in Design, Plugins

Dropdown Menus
If you got a page with many subpages, it’s great to have a dropdown functionality in the navigation bar. Let’s say you’re working on a guide, with several parts. The guide can have a primary page, that is shown in the navigation menu, plus 4 parts or subpages that is shown when hovering the primary link.

The first option is a plugin called Multi-level Navigation Plugin. This provides a dropdown navigation menu, with lots of options. Fill the settings page however you want, and use the code <?php if (function_exists('pixopoint_menu')) { pixopoint_menu(); } ?> where you want to use it. You must remove your current navigation bar, if you don’t want two bars.

The second alternative is creating dropdown menus by CSS. kristarella.com has got a great guide for doing this in the Thesis Theme.  She also shows a AJAX code so it works with Internet Explorer. It’s the one I use, and I think it’s the best option for me.

{ 1 comment }