WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar and Green marinee template (7 posts)

  1. Djezz
    Member
    Posted 8 years ago #

    Hi, I just finish the installation of my WP.
    I have a problem with the sidebar with the green marinee template.
    The categories and the sub-categories don't want to be in line.
    http://www.consommacteur.info/
    OPCVM is a sub-categorie of ISR but, as you can see, he isn't in line.
    I just start with WP so i'm lost in the files.
    Could someone help me.

  2. tomhanna
    Member
    Posted 8 years ago #

    Subcategories generally aren't in line with the categories; it's normal for them to be indented below the parent category. So the default option for whether to list categories hierarchically is True. You want to set it to false.

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

    This will be an edit that you will make in the Sidebar template file. You can do that from Presentation | Theme Editor in the Dashboard.

  3. Djezz
    Member
    Posted 8 years ago #

    Thanks for the links, I find some interesting things.
    But it's not my problem. I want that subcategroies are indented below the parents.
    My problem is that the green point of teh parent cat is beside of the children cat. Furthermore up and down of the children cat, a line is skipped. I don't want this.

  4. tomhanna
    Member
    Posted 8 years ago #

    Ah, that is likely an issue with your CSS or it may be a validation error. Did you modify the sidebar from the original theme? If you just had what's in the original theme to call the categories I think you'd be fine.:

    <h3><?php _e('The Categories'); ?></h3>
    <ul>
    <?php wp_list_cats(); ?>
    </ul>

  5. Djezz
    Member
    Posted 8 years ago #

    I've these lines and the error is here. that's my problem ;-)

  6. tomhanna
    Member
    Posted 8 years ago #

    Then it's likely something in the stylesheet about the way lists and list items are styled. I've noticed a couple of theme authors that purposely did this sort of thing and I just had to experiment with the template and the stylesheet until I got it the way I wanted.

  7. asparagus
    Member
    Posted 8 years ago #

    Well, I may as well enter the "Mr Obvious" running so soon with the following suggestion. The problem is apparently this expression
    #links li {
    list-style: none;
    background: url(images/links_bullet.gif) no-repeat 0 50%;
    padding: 2px 0 2px 20px;
    }

    If you modify it to
    #links li {
    list-style-image: url(images/links_bullet.gif);
    padding: 2px 0 2px 20px;
    }

    I think you will get what you want. At least, I did here.

    My apologies to Ian for mangling his design... it'll only get worse given time.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.