Title: Dropdown Fix?
Last modified: August 18, 2016

---

# Dropdown Fix?

 *  [blazzinmatt](https://wordpress.org/support/users/blazzinmatt/)
 * (@blazzinmatt)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/dropdown-fix/)
 * If you view my page in IE the dropdown box for the categories is messed up. The
   categories are not in the box, but this only happens in IE.
 * Here is the code for it:
    `<form id="catform" action="<?php echo $PHP_SELF ?>"
   method="post"> <p style="margin: 0px; padding: 0px;"> <select id="cat" onchange
   ="submit(this.form);"> <option value="">Select One</option> <?php dropdown_cats();?
   > </select>
 * </form>

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [blazzinmatt](https://wordpress.org/support/users/blazzinmatt/)
 * (@blazzinmatt)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/dropdown-fix/#post-265560)
 * Anyone?
 *  1539
 * [20 years, 8 months ago](https://wordpress.org/support/topic/dropdown-fix/#post-265642)
 * You’re trying to add extra code to the dropdown_cats(); function, and it won’t
   work. I was curious to where you got this idea, and I assume you got it from 
   the Codex: [http://codex.wordpress.org/Template_Tags/dropdown_cats](http://codex.wordpress.org/Template_Tags/dropdown_cats)
 * Bleh. I’m not sure what planet the person is who added those instructions to 
   the page, but it’s wrong. He not only suggests you nest a <select> tag with in
   another, but also says it will work! I attempted to write some JavaScript to 
   get what you want accomplished, but it appears the onChange event doesn’t work
   the same way embedded as it does inline. For what you want to do, you’d have 
   to modify the core dropdown_cats(); function.
 *  Thread Starter [blazzinmatt](https://wordpress.org/support/users/blazzinmatt/)
 * (@blazzinmatt)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/dropdown-fix/#post-265700)
 * See but that thing I don’t understand is why it works for the archives and not
   for the categories. It also works in Firefox, but not in IE
 *  1539
 * [20 years, 8 months ago](https://wordpress.org/support/topic/dropdown-fix/#post-265746)
 * It doesn’t work like wp_get_archives() with the ‘format=option’ because dropdown_cats
   is much less complicated and does not have the features wp_get_archives does.
   wp_get_archives() with that option I mentioned outputs each archive section enclosed
   in `<option>` tags, **without** the `<select>` tags. It would make sense to deprecate
   dropdown_cats() and implement a ‘format’ option type in addition to the four 
   possible values similar to wp_get_archives(). I checked just to be sure, it’s
   not in the latest svn checkout. I’ll file a bug in Trac for this.
 *  [9114619](https://wordpress.org/support/users/9114619/)
 * (@9114619)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/dropdown-fix/#post-265820)
 * No being able to control the `<select>` using the `dropdown_cats()` was stupid
   to begin with. I don’t understand why WordPress isn’t constant in his flexibility(
   the `wp_get_archives()` is a perfect example).
 *  [Richardson](https://wordpress.org/support/users/richardson/)
 * (@richardson)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/dropdown-fix/#post-265821)
 * I am very interested in this as well. The site I’m working on, korealiberator.
   org, uses the drop down cats, but some of the cat names are long enough to cause
   the menu to extend off the page in FF/Mozilla, and causes the “Go” button to 
   wrap under the menu in IE.
 * After extensive searches, several refs to using ‘select’ but I have no idea where
   or how to implement that.
 * If I knew where/what to edit in any of the core files, I’d give it a shot (and
   be ready to ftp the backup asap).
 * What I want to do – set the width of the drop down cats menu. This is what I 
   have;
 * <h2>Categories</h2>
    <form action=”<?php echo $PHP_SELF ?>”method=”get”> <p style
   =”padding: 0px; margin: 0px;”> <?php dropdown_cats(); ?><input type=”submit” 
   name=”submit” value=”GO”/></form>
 * This works, just looks terrible.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Dropdown Fix?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [Richardson](https://wordpress.org/support/users/richardson/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/dropdown-fix/#post-265821)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
