• Since someone closed my thread elsewhere without giving me a chance to respond, I have to post here.

    We are using the 2014 base WordPress theme and we’re having trouble with it forcing all ordered lists to use numerals rather than allowing us to set the type to lower case letters or the like. I assume I need to add CSS to block this behavior, but I’m not quite sure how to do that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The container of the main content is “site-content” so redefine CSS for that area.
    .site-content ol li {list-item-type:…}

    .site-content ol li li {list-item-type:…}

    Thread Starter OscarGuy

    (@oscarguy)

    Is there any way to remove the restriction entirely and just use inline styling? I know it’s not the preferred method of CSS, but it would be easier in this situation since I don’t know that I plan to have the change apply outside of this one page and the default is numeric I believe, not alpha or roman numerals, which is what I want to use for this particular document.

    I use for own CSS plugin Code Snippet. IMO it is not a good idea to use the Custom CSS because WordPress saves every change. If you have a lot of CSS it might grow the database immerce.

    If you add just few lines using Custom CSS is OK.

    Use the page id. Body element has page id class. for example post-id-288

    body.post-id-xxx .site-content ol li {list-item-type:…}
    body.post-id-xxx .site-content ol li li {list-item-type:…}

    Thread Starter OscarGuy

    (@oscarguy)

    I really just want to strip out the css that forces lists to be numeric only. I don’t want it for a specific post. It seems like a pointless thing to force on the user since numeric is the default for OL anyway.

    put !important to the end of the statement or use more complex rules. Sometimes I add #page…. to get something to override existing CSS.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem With OL Types’ is closed to new replies.