1 minute read

Table of contents

Parameters:

  • title – add title, for example: “Contents”.

Exemplary usage:

[table_of_contents title="Contents"]
<ul>
<li><a href="#headline-1">1. Exemplary headline 1</a></li>
<li><a href="#headline-2">2. Exemplary headline 2</a></li>
<li><a href="#headline-3">3. Exemplary headline 3</a></li>
</ul>
[/table_of_contents]

Notes: In the content you need to add id for headlines, for example:


<h2 id="headline-1">1. Exemplary headline 1</h2>

See also demo of table of contents. In full download package (Dummy data/shortcodes-pages/table-of-contents.html) You can find the file with shortcodes we used to create demo page.

Did you know...

You can use “table of contents” element in drag and drop website builder (Visual Composer). Parameters and design options are the same as in shortcode.