WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Drop down menu without a plugin (5 posts)

  1. oh_hello
    Member
    Posted 8 years ago #

    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.

  2. vavroom
    Member
    Posted 8 years ago #

    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).

    HTH

  3. oh_hello
    Member
    Posted 8 years ago #

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

  4. vavroom
    Member
    Posted 8 years ago #

    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 :)

  5. acheta
    Member
    Posted 7 years ago #

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

    more here

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags