Support » Fixing WordPress » Drop-Down Menus for v1.5

  • Way back on 02/13/04, Myke115 wrote:

    “…I want to add a drop down menus for displaying large lists of links such as archives, blogroll, etc. Does anyone know what code I should add to make a drop down menu? I’m really at the beginning of learning to style but I do learn quickly. I’m not wanting to mess things up so I’d really like advice before I stick the code in. Also would it need to be in the .css sheet or on the template?”

    I’m using v1.5, but the same question applies. Specifically, I want a drop-down menu for pages, archives, and catagories. Any idea where to go for pointers or advice on how to proceed?

Viewing 10 replies - 1 through 10 (of 10 total)
  • This is for 1.2 but look in the comments section for a guide on 1.5

    For archives:
    <form name="archiveform" action="">
    <select name="archive_chrono" onchange="window.location = (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
    <option value=''>By Month</option>
    <?php wp_get_archives('format=option'); ?>

    For cats:

    For pages:

    This archive code worked great for me, thanks!!

    IanD’s archive drop down code worked great for me also.

    Is there a way to make the fonts in the drop down menu consistent with the rest of my site?

    Probably already is, at least with the rest of your forms:

    form { blah-blah-blah }

    What do I have to change, when using the Archive code, to
    let it show the Post titles?? instead of the month?



    OK. This is an old thread, so I’m hoping someone will actually read this. Otherwise I’ll have to post a new thread and have someone tell me to search the old threads.

    I’ve given the plugin a try and it’s great. But I can’t figure out how to control the witdh of the drop down, so that it doesn’t spill over my sidebar. I checked the comments in the original post, and someone asked the same question. The answer was that there’s a way to do it in CSS, but there was no indication as to how. My CSS knowledge is intermediate, but nothing I tried worked.

    So has anyone used this and succesfully controlled the width with CSS? If so, please tell me HOW.



    I use drop-downs and the css I use is:
    select {
    width: 160px;

    A link to your site would be helpful too.



    I’ll give that a try. I’ve since deactivated the plugin, but the link to my site is



    That worked. Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Drop-Down Menus for v1.5’ is closed to new replies.