WordPress.org

Ready to get started?Download WordPress

Forums

Drop down category list (7 posts)

  1. 4k
    Member
    Posted 6 years ago #

    I was using Zelig Dropdown Cats, which is not going to be supported for 2.3.

    Is there another plugin in or way to code the cat widget to wrap long cats?

    When I try to use the drop list option it extends far beyond my sidebars.

  2. MichaelH
    Member
    Posted 6 years ago #

    Have you looked at the template tag, wp_dropdown_categories?

  3. 4k
    Member
    Posted 6 years ago #

    Well I tried that but it just presents me with exactly the same drop down list as the widget option.

    What I need is a fix to make the text wrap and I don't know how to do that.

  4. pizdin_dim
    Member
    Posted 6 years ago #

    "What I need is a fix to make the text wrap and I don't know how to do that."

    I don't believe that's possible with HTML and that's why dropdown lists are not usually recommended for navigation, especially when you're trying to restrict the width.

  5. 4k
    Member
    Posted 6 years ago #

    It must be possible because the plugin I mentioned did it.

  6. pizdin_dim
    Member
    Posted 6 years ago #

    "It must be possible because the plugin I mentioned did it."

    No, I don't think so. While I haven't used the plugin, I can't see any feats of magic the author might have performed to cause the list entries to wrap. I know that you can restrict the width of the select element by using the style attribute, eg:

    <select name="a" id="a" style="width: 200px">

    Maybe that's what you meant? Keep in mind that will not cause any wrapping, it just restricts the width of the dropdown to 200px. While you can also restrict each option to 200px by specifying the style attribute, that will simply truncate the text, not wrap it.

  7. munckee
    Member
    Posted 6 years ago #

    pizdin_dim: where are you adding that style to apply it to the category dropdown in the widget?

Topic Closed

This topic has been closed to new replies.

About this Topic