WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Dropdown Archives too wide (12 posts)

  1. wibbler
    Member
    Posted 7 years ago #

    I have a dropdown list for my categories using the Dropdown Archives plugin. However, some of my categoriesa re quite long, adn the dropdown is too wide for the column it is in. What's the best way to deal with this, without having to change the column width?
    I've tried changing the font size for the options, that that seems to act differently in IE and firefox.

  2. billdennis5
    Member
    Posted 6 years ago #

    I'm going to bump this entry because I have the same issue. I prefer to use drop downs because they clear clutter from my front page sidebar without doing away with them all together. NONE of the other drop downs I'm using has this problem, but the category drop down width seems to insist on matching the longest category name, Surely there's some tweak that can be done to fix this ...

    Here is the sidebar code:

    <li id="categories">
    <h2><?php _e('Categories:'); ?></h2>
    <form action="<?php bloginfo('url'); ?>" method="get">
    <?php wp_dropdown_categories('show_count=1&hierarchical=1'); ?>
    <input type="submit" name="submit" value="view" />
    </form>

  3. Any help would be very much appreciated.

  • whooami
    Member
    Posted 6 years ago #

    ...the category drop down width seems to insist on matching the longest category name

    thats normal. you might find a solution, if one exists on google.

    that or you might think about a PHP solution that will truncate the length of your categories if they exceed a certain amount of characters.

  • Chris_K
    Member
    Posted 6 years ago #

    ... and to keep it more exciting, it's more browser dependent than anything else.

    In other words, once you find a solution, be sure to test it with multiple browsers.

  • billdennis5
    Member
    Posted 6 years ago #

    I'm confused the, because if you look at my site, I'm also using drop down lists for pages and links, and none of them have this problem. Only the drop down display box for categories.

    The length of the box bleeds over into my right sidebar, and it's driving me insane.

    And I have searched this several times, and there's no solution already out there, as far as I can see.

    I'm afraid my "PHP-fu" is not strong enough to fix this.

  • billdennis5
    Member
    Posted 6 years ago #

    HandySolo: Thanks for the tip. I forget there are still people using inferior browsers.

    ;-)

  • billdennis5
    Member
    Posted 6 years ago #

    SOLUTION DISCOVERED!

    Zelig Dropdown Cats.

    Also:

    Zelig Dropdown Links.

    I set the box width to 155 and they both render beautifully!

  • billdennis5
    Member
    Posted 6 years ago #

    Bad news: Zelig Drop Down Cats will NOT work with WordPress 2.3 and the plugin developer says no solution will be coming soon.

  • spencerp
    Member
    Posted 6 years ago #

    Bad news: Zelig Drop Down Cats will NOT work with WordPress 2.3 and the plugin developer says no solution will be coming soon.

    Yeah sigh. I was using that drop down plugin already, when running 2.3-alpha with new schema... it showed ALL of the WP tags in it. Dang that was a mess. I removed the plugin, and all was fine. I was kind of hoping for an update though, ah well...

  • billdennis5
    Member
    Posted 6 years ago #

    Problem for me is that I am stuck with having to use drop downs, because I have too many categories, and I refuse to have a huge list of them on my front page.

    I may end up moving all these cats into five or six "super categories." It still doesn't solve the drop down links issue.

    And has anyone figured out a way to fix the "Simple Tagging" plugin, which also isn't compatible with WordPress 2.3?

    These are things I'm gonna have to figure out, cause I refuse to not upgrade my site.

  • spencerp
    Member
    Posted 6 years ago #

    "And has anyone figured out a way to fix the "Simple Tagging" plugin, which also isn't compatible with WordPress 2.3?"

    http://wordpress.org/support/topic/135564?replies=31#post-621390

    P.S. I hope you get your category issues taken care of, I know how it is sigh.

  • Root
    Member
    Posted 6 years ago #

    These look neat:

    Spiffy pimped up drop downs

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags