WordPress.org

Ready to get started?Download WordPress

Forums

removing <li> from menu items in classic themes (5 posts)

  1. abcdefgary
    Member
    Posted 7 years ago #

    hello, I am currently using the Classic theme and in the menu bar, I see that my "category" items are included using <?php _e('Categories'); ?> to show the items.

    I would like to modify these items so that they do not have
    <li></li>
    around them, so they do not have indents. I've already used CSS to get rid of the indents but it seems that IE does not eliminate the indent.

    does anyone know where I can go to edit these items?

    thanks. I hope I am understandable.

  2. moshu
    Member
    Posted 7 years ago #

    Actually, that's only the title/header of the list. This is the template tag that displays your categories:
    http://codex.wordpress.org/Template_Tags/wp_list_cats
    (or something sinilar from here:
    http://codex.wordpress.org/Template_Tags#Category_tags)

    Read the parameters section!

  3. abcdefgary
    Member
    Posted 7 years ago #

    No, sorry for not being clear but I want to modify the items in the category, not the category header:

    Category
    # Item <--- I want to edit these
    # Item
    # Item

    right now, I put this in my css:
    li { list-style: none;}

    Firefox shows the items without an indent, while IE does an indent. I would like to modify the tags surrounding "Item" so there is no indent.

    right now, the items are showing up because of the <?php wp_list_cats(''); ?> tag but I have no idea how to modify the code surrounding the items under each category.

    hopefully someone can show me the way, thanks in advance

  4. moshu
    Member
    Posted 7 years ago #

    When I started to learn how to tweak themes... I downloaded 3-4-10 themes and looked at the code.
    Adjusting the "indent" for lists - usually means playing with margin/padding values.

  5. abcdefgary
    Member
    Posted 7 years ago #

    Thank you. I did some research and removed it via css padding/margin.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags