WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Ordered List Not working (15 posts)

  1. smfrick
    Member
    Posted 3 years ago #

    I have a blog where I'm using an ordered list

      command and when I show it in preview I get 1. for each line item rather than getting the incrementing numbers. I've even tried to use the type="1" parameter in the ol, and nothing seems to work.

      <ol>
      <li>first item</li>
      <li>second item</li>
      <li>third item</li>
      </ol>

      results:
      1. first item
      1. second item
      1. third item

      Thanks for any help with this problem
      Steve

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    is the html that you posted something you got from viewing the html of your post/page in the broswser, or something that you expect to see?

    link to your site?

  3. smfrick
    Member
    Posted 3 years ago #

    It's actually what I see on my preview and when I publish

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    do you see this structure:

    <ol>
    <li>first item</li>
    <li>second item</li>
    <li>third item</li>
    </ol>

    in the html code in your browser?

    (i am not asking what you see on the screen)

  5. smfrick
    Member
    Posted 3 years ago #

  6. smfrick
    Member
    Posted 3 years ago #

    The Code I put up is what I copied from the HTML tab of the body editor. In the Visual Body it shows:

    1. test 1
    2. test 2
    3. test 3

    The problem is that's not what I get when I preview or publish.

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    Can we see the published page? Your theme may be re-styling ordered lists.

  8. smfrick
    Member
    Posted 3 years ago #

    I think I figured it out, it's not word press. I was using Firefox, and then I went to IE and had the same problem except I get a list of 0. instead of 1. Then I went to Chrome - no problem, Safari - no problem. It's the browser or a plug-in for the browser that isn't working.

  9. esmi
    Forum Moderator
    Posted 3 years ago #

    List displays aren't browser or plugin specific. My guess is that it's a poor bit of CSS and the '0' that you are seeing are actually list circles intended for a bulleted list.

  10. smfrick
    Member
    Posted 3 years ago #

  11. esmi
    Forum Moderator
    Posted 3 years ago #

    Are you sure that page is published?

    Not Found
    Error 404 - Not Found

  12. smfrick
    Member
    Posted 3 years ago #

    Sorry, my co-worker unpublished it. it should be live now

  13. esmi
    Forum Moderator
    Posted 3 years ago #

    Got it! style.css:

    .art-post li {
        margin: 0.2em 0;
        overflow: hidden;
        padding: 0;
    }

    Remove overflow: hidden;.

  14. smfrick
    Member
    Posted 3 years ago #

    Awesome! Thank you so much esmi! That fixed the issue.

  15. esmi
    Forum Moderator
    Posted 3 years ago #

    No problem :-)

Topic Closed

This topic has been closed to new replies.

About this Topic