---
title: Auto Table of Contents setup guide | All Gusto
description: "Set up Auto Table of Contents, a free HubSpot module: install it, add it to a blog post or page, choose which headings it lists and clear a sticky header."
---

[Skip to content](https://allgusto.com/hubspot-apps-and-themes/hubspot-table-of-contents/docs#main)

[![All Gusto](https://allgusto.com/hs-fs/hubfs/All%20Gusto%20-%20Logo%20-%20Black%20-%20Transparent-1.png?width=340&height=226)](https://allgusto.com/)

- [Home](https://allgusto.com/)
- [About](https://allgusto.com/about)
- [Apps and Themes](https://allgusto.com/hubspot-apps-and-themes)
- [Blog](https://allgusto.com/blog)
- [Contact](https://allgusto.com/contact-us)

1. [Apps and Themes](https://allgusto.com/hubspot-apps-and-themes)
2. Docs

# Auto Table of Contents: setup guide

Auto Table of Contents builds a list of links from the H2, H3 and H4 headings already in a blog post, website page or landing page. This guide covers where to place it, what each setting does and how to fix the few things that can go wrong.

## 1. Install and place it

1. Install Auto Table of Contents from the HubSpot Marketplace. It appears in your module list.
2. Place it where readers will see it first, usually right after the opening paragraph. 
     - **One blog post:** open the post in the editor and drag the module into the post body. This works where your blog template allows modules in the body.
     - Add the module to each blog post where you want a table of contents.
     - **Website or landing page:** drag it into the page above the content it should list.
3. Publish and open the live page. The list fills in from the headings it finds.

In the editor, if the module finds no headings yet, it shows a short message that visitors never see.

## 2. Settings

| Setting | What it does | Default |
| --- | --- | --- |
| Show title | Shows the title above the list. | On |
| Headings to include | Which levels to list: H2, H3, H4. | All three |
| Show only with at least this many headings | Posts with fewer matching headings show no box and keep no empty space. 3 is a good choice for a blog template. | 1 |
| Layout | Inline sits in the article. Sticky sidebar pins the list in the side margin on wide screens. Floating pins a compact panel. | Inline |
| Mobile presentation | Under 720px wide, Pill and drawer shows a small On this page button that opens the list. The other choice keeps the list in the article. | Pill and drawer |
| Allow visitors to collapse the list | Adds a Collapse and Expand button. | On |
| Start collapsed | Shows only the title and Expand until the visitor opens it. Needs collapsing allowed. | Off |
| Number the list | Nested numbers: 1, 1.1, 1.2. | Off |
| Show reading progress | A thin bar that tracks how far the reader has scrolled through the article. | On |
| Sticky header offset | Auto finds a header pinned to the top of the screen and adds the extra pixels you set below it. Manual uses your pixel number as the full offset. | Auto, 16px |
| Highlight the current section | Marks the section in view as the reader scrolls. | On |
| Box style | Boxed or Plain. | Boxed |
| Labels | Title, the phone button, Close, Collapse, Expand and the editor-only message. Change them for another language. | English |

### Advanced

| Setting | What it does |
| --- | --- |
| Content selector | A CSS selector for the part of the page to scan. Leave it empty on blog posts; the module finds the post body. Use it on pages where the article sits in a specific wrapper. |
| Exclude selector | Headings inside matching elements are left out. Add a class such as `no-toc` to a heading or wrapper, then enter `.no-toc`. |
| Exclude headings by text | Heading text to skip, separated by `\|`, not case-sensitive. `*` matches any run of characters. Example: `Related posts\|Subscribe*\|FAQ`. |
| Heading source HTML | For coded templates only. Pass the rendered page body so the module can count headings on the server and reserve the list's height before it paints. |

## 3. Anchor links

The module adds an ID only to a heading that has none, built from the heading text. Headings that already have an ID keep it, so links you have shared keep working. A new ID never reuses one already on the page: two headings with the same text get IDs such as `pricing` and `pricing-2`, so each link lands on its own heading.

## 4. Sticky headers

If your site header stays at the top as you scroll, leave Sticky header offset on Auto. Clicking a link, or opening a shared link to a section, puts the heading just below the header. If your header changes height as you scroll or the heading still lands under it, switch to Manual and enter the header height plus a little space.

## 5. Styling

The box takes its colors from the page, so it matches light and dark themes without settings. To restyle it, target the module's public class names (they start with `auto-table-of-contents`) and its CSS custom properties from your theme or page CSS. The live demo's three styles are page CSS only: [https://toc.allgusto.com/toc-showcase](https://toc.allgusto.com/toc-showcase).

## 6. Keeping the page from jumping

On blog posts the module counts the headings on the server and reserves the list's height, so the article does not move down when the list appears. On drag and drop website pages the module cannot see the rest of the page on the server, so the list paints in after load. If that moves your content, set `--auto-table-of-contents-list-min-height` on the module or a wrapper, or use Heading source HTML in a coded template.

If your theme uses a web font with no fallback font listed, a long title can rewrap when the font arrives and move everything below it, this module included. Add a metric-matched fallback font to the theme to fix it.

## 7. What it does not do

- It does not work in HubSpot knowledge base articles. The knowledge base does not use CMS themes or drag and drop modules.
- It needs JavaScript to build the list. With JavaScript off, the box stays hidden instead of showing an empty title.
- It lists headings only. It does not add search, FAQ blocks or structured data.

## Support

Email info@allgusto.com. I reply within one business day.

© 2026 All Gusto, LLC

- [Home](https://allgusto.com/)
- [About](https://allgusto.com/about)
- [Apps and Themes](https://allgusto.com/hubspot-apps-and-themes)
- [Gatehouse member portal theme](https://allgusto.com/hubspot-apps-and-themes/gatehouse-member-portal)
- [Events Calendar and Agenda module](https://allgusto.com/hubspot-apps-and-themes/events-calendar-and-agenda)
- [Blog](https://allgusto.com/blog)
- [Contact](https://allgusto.com/contact-us)
- [Privacy](https://allgusto.com/privacy)
- [Terms](https://allgusto.com/terms)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BreadcrumbList",
  "itemListElement" : [ {
    "@type" : "ListItem",
    "item" : "https://allgusto.com/",
    "name" : "Home",
    "position" : 1
  }, {
    "@type" : "ListItem",
    "item" : "https://allgusto.com/hubspot-apps-and-themes",
    "name" : "Apps and Themes",
    "position" : 2
  }, {
    "@type" : "ListItem",
    "item" : "https://allgusto.com/hubspot-apps-and-themes/hubspot-table-of-contents/docs",
    "name" : "Docs",
    "position" : 3
  } ]
}
```