Skip to main content

The Table of Contents module in Divi 5

Learn how to add and style the Table of Contents module in Divi 5, which auto-builds a linked list of your page's headings.

The Table of Contents module automatically scans the headings on your page and turns them into a navigable, linked list. It is built for long-form content - blog posts, guides, documentation, and knowledge base pages - where readers benefit from jumping straight to the section they need.

![Screenshot: The Table of Contents module placed on a long-form page, showing a linked list of headings]

How to add the Table of Contents module

When you load the Visual Builder, Divi automatically adds a Section.

  1. Click the Green Plus icon to insert a Row.

  2. Click the Gray Plus icon inside the Row, which will show the list of all available Divi modules.

  3. Find the Table of Contents module and click on it to load it. Alternatively, you can use the Search option to find it.

Divi - Add Table of Contents module

Table of Contents module use cases

  1. Long-form posts and guides - Give readers an overview of a lengthy article and let them jump to any section instantly.

  2. Documentation and knowledge base pages - Help users navigate dense reference content without endless scrolling.

  3. Sticky on-page navigation - Combine the module with sticky positioning so the list stays visible as visitors move down the page.

πŸ’‘Pro tip: The module builds its list from the headings already on your page, so structure your content with proper heading levels (for example, with the Heading module) to get a clean, well-nested table.

Table of Contents settings breakdown

Once you have added the module, its settings open automatically. This is where the module's content and design are configured. The settings are organized into three tabs at the top of the module:

The Content tab

The Content tab is where you choose what the table is built from and set the module's base content options.

Divi 5 - Table of Contents Module's Content tab
  1. Content - Choose what the table of contents is built from, including which of the page's headings it pulls in.

  2. Link - Make the entire module clickable, directing users to another page, section, or external site.

  3. Elements - Add other Divi 5 modules as nested elements to the Table of Contents.

  4. Background - Choose the module's background color, gradient, image, or video.

  5. Loop - Enable the Loop Builder to repeat the module across a set of dynamic content.

  6. Order - Choose the order in which the module appears inside a Flexbox or Grid layout.

  7. Meta - Set the module's label and force its visibility inside the Visual Builder.


The Design tab

All of the module's design and styling options live in this tab, including separate text controls for each heading level the table lists.

Divi 5 - Table of Contents Module's Design tab
  1. Scroll - Control how the table behaves as visitors scroll, such as smooth-scrolling to a heading when its link is clicked and highlighting the section currently in view.

  2. Layout - Choose how the list is arranged and displayed using the Flexbox or CSS Grid layout options.

  3. Title Text - Style the table's title text, including font, size, color, and spacing.

  4. List Text - Set the base text styles applied to every entry in the list.

  5. List Level 1 Text - Override the text styles for the first heading level, so it can look distinct from the others.

  6. List Level 2 Text - Override the text styles for the second heading level.

  7. List Level 3 Text - Override the text styles for the third heading level.

  8. List Level 4 Text - Override the text styles for the fourth heading level.

  9. List Level 5 Text - Override the text styles for the fifth heading level.

  10. List Level 6 Text - Override the text styles for the sixth heading level.

  11. Marker Text - Style the marker shown beside each list item, such as a bullet or number.

  12. Empty State Text - Style the message shown when the page has no headings for the table to list.

  13. Sizing - Choose the module's sizing.

  14. Spacing - Choose the module's spacing.

  15. Border - Choose the module's border styles.

  16. Box Shadow - Choose the module's box shadow styles.

  17. Filters - Choose the module's filters, such as hue shifts, saturation changes, and blending modes.

  18. Transform - Choose advanced design effects such as scaling, rotating, skewing, and translating.

  19. Animation - Choose the module's animation styles.


The Advanced tab

The Advanced tab provides tools for experienced designers, including custom CSS, semantic HTML, visibility controls, transitions, positioning, and scroll effects.

Divi 5 - Table of Contents Module's Advanced tab
  1. Attributes - Assign a CSS ID, reusable CSS classes, or custom HTML attributes to the module.

  2. CSS - Add custom CSS to fine-tune the module beyond the built-in options.

  3. HTML - Choose the semantic HTML tag used for the module.

  4. Conditions - Show or hide the module based on dynamic conditions, so the right content reaches the right audience.

  5. Interactions - Create custom interactions, such as showing or hiding the module on click or hover.

  6. Visibility - Choose the module's visibility across different devices.

  7. Transitions - Choose how long the module's animations take, adding subtle, impactful motion.

  8. Position - Control the module's placement precisely, including sticky positioning for an always-visible table.

  9. Scroll Effects - Control how the module behaves and transforms during scrolling.


What's the next step?

Save your changes and exit the Visual Builder

To save the page design, you can type CMD + S on a Mac or CTRL + S on a PC.

You can also:

  1. Click on the Save button.

  2. Click on the Exit button.

Divi 5 - Save and Exit Visual Builder

Did this answer your question?