Support » Fixing WordPress » subcategories showing a double space

  • I added a subcategory, but in my category list it creates a double space before and after the next category in the list after the subcat. Anyone have this or know how to fix? I am using the latest nightly and replaced the li and ul’s in templates with ‘
    ‘ tags.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Oh dear oh dear oh dear. Tables in the header, and br tags in the lists.
    Simple solution: Put it all the way it should be then someone can help with the css? And you are a designer? Do you read at all?

    okay, well.. if you put your ul back in, try this:
    #menu ul {
    line-height: 1em;
    #menu li {
    line-height: 1em;
    it might force the spacing the way you want. I can’t help too much more without seeing the actual behavior of the ul within your source code.

    Moderator Matt Mullenweg



    Um Root, that was pretty rude. Please keep that sort of stuff to yourself.
    Bruce, that’s a side-effect of using breaks for the category list. It would be easier to style it if you used lists, and this page on the wiki might give you a good start into controlling the lists to appear like you want:

    does not wp_list (); tag remove all the nested uls?

    Mark (podz)


    Support Maven

    You’ve coded the links into the index.php template ?
    Using the Links Manager will help get your links nested correctly.
    Right now, take them out of index.php.
    Then add this line there instead:
    <?php wp_list_cats(); ?>
    This should display the categories pretty much as they are now, but the styling may be slightly different. If so, the places to check in the CSS are the #menu ul, #menu ul ul, and #menu ul ul li
    They control the font, the gap between lines, indentation etc.

    This isn’t going to be a great answer but it might help a little — if you put the li and ul’s back, I think you have more control over the layout, just because the whole page is set up that way. Then if you go into your wp-layout.css, here’s the entry that seems to help with the subcategories:
    '#menu ul ul ul.children {
    font-size: 13px;
    margin: 2px 0 0px 0;
    padding: 0px 0px 0px 10px;

    That’s what I did on mine to fix it, added this entry (it might already exist and need tweaking in the 1.2 version of that css sheet)– and I am just hacking my way through the underbrush trying to learn CSS and some PHP, so my solution may not be very good, but it does seem to have worked the way I wanted it to.
    Not accustomed to fielding questions but I hope this helps anyway! :}

    Heh!! I took so long figuring out how to say what I did, my help is kinda redundant… now I can read these other replies and find out if what I did is even mildly acceptable or not… thanks guys!! 😀

    @ allusion: My apologies.

    that’s got to be the most diplomatic response I’ve ever seen. worthy of congress, I say. LOL

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘subcategories showing a double space’ is closed to new replies.