WordPress.org

Ready to get started?Download WordPress

Forums

How to enlarge the category div on the post page (8 posts)

  1. Anonymous
    Unregistered
    Posted 9 years ago #

    I've now got enough categories that I would like to enlarge the fieldset used to display the list of categories on the post page. There's more than enough room, but after the 21st category, it generates it scroll bar for the category list (and even fewer in some browsers).
    Where would I edit the source to expand this? For the life of me I can't find it in post.php

  2. dherren
    Member
    Posted 9 years ago #

    The above is actually my post--my bad--forgot to log in before posting...

  3. TreoRenegade
    Member
    Posted 9 years ago #

    You're not alone in wondering about this particular how-to.

  4. macwise
    Member
    Posted 9 years ago #

    I would like to know as well...So used to tables. : (

  5. Lorelle
    Member
    Posted 9 years ago #

    Okay, just trying to understand because the original request wasn't clear.

    If you have a long list of categories in your sidebar and you would like to have the list fully visible, two things can be the cause of why they aren't all "visible".

    One: The height was set for the container displaying the category list. Usually this isn't "normal" but with some Themes and styles, it could be. Look in the style.css for the style reference for the list of categories and check to see if there is a height set. If there is, eliminate it or change it to something more appropriate.

    Two: Using lists, the number of "children" or subcategories get pushed off the edge of the page. This is because the sidebar container is set to a specific width, and anything in it is confined to that width. There are several ways to "fix" this.

    If you want to widen the sidebar, and there is room enough to do so, in the style.css file in your Theme, look for a reference to sidebar or menu, or something similar. In that CSS selector, look for the width and change it to a larger number. NOW, the architectural structure of your web page will change. It's a domino effect. Change one primary container and the rest get shoved around. Check in your content container and other containers within the structure of your page and subtract the numbers you added to the sidebar to help shuffle things back into place.

    If the list is running off of the page because the indentions are too wide, looking something like a staircase moving off the page, then you can change the indentions so they are smaller, keeping the "steps" very narrow. Again, look in your style.css file for the styles that contain your UL LI under sidebar or menu. Adjust the margins and padding accordingly.

    This is just a short look at your options because I'm not sure if this is the right answer. Here are more detailed articles that may help you, or at least get you on the right track.

    http://codex.wordpress.org/Styling_Lists_with_CSS
    http://codex.wordpress.org/Customizing_Your_Sidebar
    http://codex.wordpress.org/Blog_Design_and_Layout
    http://codex.wordpress.org/WordPress_Lessons

    If the problem is that you want to control the number of categories and their subcategories showing on the list:

    http://codex.wordpress.org/Stepping_Into_Template_Tags
    http://codex.wordpress.org/Template_Tags/list_cats
    http://codex.wordpress.org/Template_Tags/wp_list_cats

  6. Syllani
    Member
    Posted 9 years ago #

    I'm guessing the OP was asking about the list with checkboxes displayed on the Write Post screen under the Admin interface.

  7. stopthepress
    Member
    Posted 8 years ago #

    I had the same problem and found a solution. Too late for you though. Here is anyway:

    In "wp-admin.css" find:

    #categorydiv div {
    height: 27em;
    overflow: auto;

    Increase height. Adjust the "Size of the writing box" (options/Writing) to avoid overflowing the available space. I use 20 lines of editing room and 40em height at the Categories.

    This is not a bug but a limitation. I wish this value becomes a variable in a next version.

  8. jimtobias
    Member
    Posted 8 years ago #

    OK -- I can now lengthen and widen my Categories sidebar in admin, but how to I narrow the textarea next to it? It's not clear to me from wp-admin.css where this is, and I really hope it's not in another file!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.