Support » Fixing WordPress » Drop down menu without a plugin

  • Resolved oh_hello


    Hi all,

    I’m trying to achieve a drop down navigation for my Pages with their SubPages as the children. This will be displayed in the header across the entire site.

    I came across this plugin: dropdown plugin but can’t seem to get it to work quite right, and am not too happy with the code it creates.

    My question: is there anyway to generate code which will basically produce a series of nested unordered lists with my Pages and SubPages so I could style it into a drop down menu without the use of any plugins?

    Thanks for any help you could give.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I’m really new to WordPress, so my solution may not work for you, but… Here’s what I’m thinking.

    The default theme that comes with WP delivers pages/subpages in the sidebar in nested uls (I think). If you use that code in the header.php in the appropriate place, then use a bit of css magic, you should be able to get there.

    Look for something like “horizontal suckerfish css menus” on google for the CSS styling, you should get a few hits.

    The advantage is that it’s purely css driven, so it remains accessible and usable even if you access the site on a text-only browser (like a wap phone, for instance).


    Of course! That seems so blatantly obvious. Thank you very much.

    Hey, sometimes the most obvious thing stares us in the face for hours and days and we don’t see it 😉 I’m glad I could help 🙂

    I’ve rewritten the dropdown menu. it now is completely css-based. no javascript needed anymore.

    more here

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Drop down menu without a plugin’ is closed to new replies.