Skip to main content

My Table of Contents is showing wrong or unrelated headings

Auto-detect is scanning the wrong part of the page. Limit detection with a precise Content Selector and heading list.

Written by Karan Bhakuni

My Table of Contents is showing wrong or unrelated headings

When this happens, the widget is usually scanning too much of the page (or the wrong container).

Steps

  1. Open your Table of Contents widget.

  2. Go to Content β†’ Data Source.

  3. Keep Auto-detect selected.

  4. In Content Selector, enter the wrapper that contains only your article body (example: article, #main-content, .blog-post-body).

  5. In Headings, set exactly which heading tags should appear (example: h2, h3).

  6. Save and preview again.

Did this answer your question?