You added a table of contents to a long post, hit Update, and then nothing. The box is empty, half the headings are missing, or the links jump to the wrong spot. If your Elementor table of contents is not working, the cause is almost always one of eight things, and most take less than five minutes to fix.
These fixes work for any table of contents widget in Elementor. Start at fix 1 and test after each step.
Why an Elementor table of contents breaks
A table of contents widget does a simple job. When the page loads, a small script looks for heading tags (H2, H3 and so on) inside a content area, gives each one an ID, and builds a list of links. So it breaks in three ways:
- It cannot find real headings (wrong tags, wrong area, or the content is not there yet).
- The script never runs (delayed, combined or blocked JavaScript).
- The links work, but the scroll lands in the wrong place (sticky header, offset, or duplicate IDs).
8 fixes when your Elementor table of contents is not working
1. Check that your headings are real heading tags
This is the most common cause. In Elementor, a Heading widget can look like a heading but use a div, span or p tag. Click the heading, open Content, and check the HTML Tag setting. Set section titles to H2 and sub sections to H3.
The same goes for text typed into a Text Editor widget: use the Heading dropdown in its toolbar, not just bold text with a bigger size.
2. Match the heading levels in the widget settings
Most widgets let you pick which tags to include. If your post uses H2 and H3 but the widget only looks for H2, the H3 items vanish. If it includes H1, your post title (or a logo set as H1 in the header) may appear at the top of the list. A safe default for blog posts is H2 and H3 only.
3. Point the widget at the right content area
A table of contents placed in a header, sidebar or single post template does not know where your article starts. If the widget has a container or content area setting, enter the CSS class of the area that holds the article, for example .elementor-widget-theme-post-content on a single post template, or add your own class (like article-body) to the container in Advanced > CSS Classes and use that.
4. Exclude headings you do not want
Searches for “elementor table of contents exclude” are common for a reason: newsletter boxes, related posts and call to action headings sneak into the list. Add a class such as no-toc to those widgets in Advanced > CSS Classes, then enter .no-toc in the widget’s exclude or skip setting. Most table of contents widgets support this, including Elementor’s own.
5. Stop optimization plugins from delaying the script
“Delay JavaScript until user interaction” is the number one reason a table of contents is empty on first load but appears after you scroll or tap. The script simply has not run yet. In your cache or performance plugin, exclude the table of contents script (search its file name in the exclusion field), or turn off delay for that page and test. If your plugin combines or minifies JavaScript, exclude it from that too.
6. Clear every cache and regenerate CSS
After any change, clear the page cache, your host’s cache and any CDN cache. Then click Regenerate Files and Data in Elementor > Tools, and test in a private window.
7. Fix content that loads late or is hidden
Headings inside tabs, accordions, sliders or content loaded with AJAX may not exist when the script runs, or they exist but are hidden, so a click goes nowhere. Keep the headings you want listed in the main flow of the article, outside toggles.
8. Fix links that land in the wrong spot
If clicking an item scrolls the heading under your sticky header, set a scroll offset in the widget equal to your header height (often 80 to 120 pixels). Also check for two headings with the same text: some scripts create duplicate IDs, so both links jump to the first one. Make each heading unique. Finally, look in the browser console (right click, Inspect, Console) for red errors from other plugins that stop scripts on the page.
How to expand, collapse and handle mobile
People also search “table of contents expand elementor” because the box starts closed on phones and readers miss it, or it opens over the whole screen. Good rules:
- Desktop: start open, keep it sticky in a side column so it follows the reader.
- Tablet and phone: start closed with a clear toggle, or use a floating button that opens a small panel.
- Long lists: show only H2 items by default, or show sub headings only for the section being read.
If your widget has a per device collapse setting, check each breakpoint in the responsive view. A box closed on mobile with no visible toggle looks broken even when it works.
The easy way: Table of Contents (Pro) by Bright Addons
If you want fewer moving parts, the Table of Contents widget in Bright Addons Pro for Elementor (Pro) was built around the problems above. It includes:
| Problem | What the Table of Contents (Pro) widget offers |
|---|---|
| Wrong heading levels | H1 to H6 picker |
| Wrong area or extra headings | Content area selector and skip selectors |
| Long, messy lists | Nested or flat lists, a word limit, and sub headings only for the current section |
| Hard to follow while reading | Highlight while reading, and the address bar updates as you scroll |
| Sticky header covers headings | Scroll offset setting |
| Mobile clutter | Open and close button that can start closed per device, sticky in its column, or a floating button with a panel that stacks above a back to top button |
| Plain look | Numbers, bullets, icon or side line styles |
Setup in four steps:
- Drag Table of Contents into the column beside your article (or into your single post template).
- Pick H2 and H3, and enter your article’s content area selector.
- Add
.no-toc(or your own class) to the skip selectors for boxes you want left out. - Set the scroll offset to your header height, choose closed on mobile, and preview on every device.
The full option list is in the Table of Contents guide. For long articles, it pairs well with Reading Progress (Pro), which adds a top or bottom progress bar and a back to top button with a progress ring. And to send readers on to more articles at the end, the Post Grid widget (Free) is in our free plugin.
Common problems and fixes at a glance
| What you see | Most likely cause | Fix |
|---|---|---|
| Box is empty | Delayed JavaScript or no real heading tags | Fix 5, then fix 1 |
| Some headings missing | Heading levels not selected | Fix 2 |
| Footer or sidebar headings listed | Content area too wide | Fixes 3 and 4 |
| Works only after scrolling | Script delayed by an optimizer | Fix 5 |
| Clicks land under the header | No scroll offset | Fix 8 |
| Two links go to one heading | Duplicate heading text | Fix 8 |
| Old version still showing | Cache | Fix 6 |
Conclusion
When your Elementor table of contents is not working, check in this order: real heading tags, the right levels, the right content area, JavaScript delay, cache, and scroll offset. Most of the time, the fix is in the first five. Once it works, set it to start closed on phones and keep it sticky on desktop, and your long posts become much easier to read and to skim.
FAQ
Why is my Elementor table of contents empty?
Usually the script has not run yet because a performance plugin delays JavaScript, or the page has no real heading tags. Exclude the script from delay and check that your headings use H2 or H3 tags.
How do I exclude a heading from the Elementor table of contents?
Add a CSS class such as no-toc to the widget in Advanced > CSS Classes, then enter .no-toc in the table of contents widget’s exclude or skip setting.
How do I make the table of contents expand or collapse on mobile?
Use the widget’s minimize or open and close setting and choose which devices start closed. Check each breakpoint in Elementor’s responsive view, and style the toggle so readers can see it.
Try it on your own site
If you want a table of contents that handles skip selectors, scroll offset and mobile collapse in one place, Table of Contents is one of 98 Pro widgets in Bright Addons Pro for Elementor. Black Friday prices are already applied until Cyber Monday, 30 November 2026: from $10 a year for one website, or $30 for a lifetime Starter licence, no code needed, with a 14-day money-back guarantee. See the Black Friday page for every plan.
Just starting out? Our free plugins are on WordPress.org: Bright Addons for Elementor (56 free widgets), Bright Addons Blocks Library for the block editor, and Bright Addons for WooCommerce.


