Site logo

[Resolved] Start Value Not Working on OL List

Home Forums Support [Resolved] Start Value Not Working on OL List

Home Forums Support Start Value Not Working on OL List

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2306546
    Lewis

    I have a post with a set of instructions but midway through the list I have an image. I then want to remaining instructions to start from a higher value which I am setting in the WordPress post settings for start value. I can see in the code for the post that start=3 is being added to the

      but this isn’t being shown on the public post.

      My CSS for the OL and LI is as follows:

      .entry-content .list-container {
          counter-reset: list-counter;
      }
      .entry-content ol {
          list-style: none;
          margin-left: 1px;
      }
      .entry-content ol li::before {
          content: counter(my-awesome-counter) ") ";
          margin-right: 2px;
          font-size: 19px;
          font-weight: 600;
      }
      .entry-content ol li {
          margin-bottom: 40px;
          margin-top: 45px;
          counter-increment: my-awesome-counter;
          overflow: hidden;
      }

      So, at the moment instructions go 1,2,IMAGE,1,2,3
      But it should go 1,2,IMAGE,3,4,5

      Thanks!

    #2306618
    David
    Staff
    Customer Support

    Hi there,

    based on your above CSS, this rule:

    .entry-content .list-container {
        counter-reset: list-counter;
    }

    Needs to be:

    .entry-content {
        counter-reset: my-awesome-counter;
    }
    #2306619
    Lewis

    That was easy! Thanks David!

    #2306627
    David
    Staff
    Customer Support

    You’re welcome !

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.