Support » Fixing WordPress » How to enlarge the category div on the post page

  • 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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The above is actually my post–my bad–forgot to log in before posting…

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

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

    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.

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

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

    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.

    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!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to enlarge the category div on the post page’ is closed to new replies.