Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The item must be a value of an HTML heading tag.
  • The heading tag must be in the range from h1 to h6.
  • The heading tag needs to have the toc-item class assigned, e.g., <h1 class="toc-item">New heading</h1>.
  • The heading tag needs to have a unique ID attribute.


Example of including a new heading in the table of contents

...

  1. Open the <template folder>/comment/comments-summary.html file.
  2. Add the h2 heading tag with its text at the required place.
  3. Add the toc-item class to the h2 element.
  4. If you want the heading to be at the bottom of the Comments Summary page, add it as an h2 element before the last closing div.

    Code Block
    …
    <h2 id="new-heading-1-3" class="toc-item">1.3 New heading</h2>
    
    </div>
    </body>
    </html>


...