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?
Thanks!
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'); ?>
</select>
</form>
For cats:
http://typedby.com/archives/2004/06/22/dropdown-plugin-with-ability-to-exclude/
For pages:
Pass..
This archive code worked great for me, thanks!!
ultrazero
Member
Posted 6 years ago #
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 }
patjepayer
Member
Posted 6 years ago #
What do I have to change, when using the Archive code, to
let it show the Post titles?? instead of the month?
TerranceDC
Member
Posted 6 years ago #
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.
TerranceDC
Member
Posted 6 years ago #
I'll give that a try. I've since deactivated the plugin, but the link to my site is http://www.republicoft.com.
TerranceDC
Member
Posted 6 years ago #