Table of Contents Widget for Website - Poper
Table of Contents Widget

An auto-generated table of contents Use the Poper embed snippet in a supported page.

The widget scans your page headings and builds a clickable outline with smooth-scroll jump links. 14 styles, manual mode when you want it. Use it on long articles, docs, and policy pages where the embed can scan the headings.

No credit card required
14-day free trial
Cancel anytime

Built for builder website teams

Timetics
Academie Digitale
Goldcast
nbcf
Seedstock
Wow
Linkxar
Gale Toyota
Skills
Rugby Sport
Lamp
Leaktronics
Steel
Theatre in Chicago
Globerto
Meetup
FYM
Zeben
Kraftix
IETraditionala
Meethires
Leadscrape
Happily
Timetics
Academie Digitale
Goldcast
nbcf
Seedstock
Wow
Linkxar
Gale Toyota
Skills
Rugby Sport
Lamp
Leaktronics
Steel
Theatre in Chicago
Globerto
Meetup
FYM
Zeben
Kraftix
IETraditionala
Meethires
Leadscrape
Happily
Available on Poper plans

Try the live table of contents widget

Live demo, not a screenshot. Pick a layout, tweak the colors, embed it. What you see here is what ships to your site.

Before and after Poper

See the table of contents widget on a real page

A long article before and after the Poper table of contents widget. The widget scans the page headings and builds a clickable outline with smooth-scroll jump links. Style it to match your brand, then copy one snippet to go live.

example.com/blog (before)
Long blog article with eight H2 sections stacked top to bottom with no table of contents, a fade-out gradient suggesting a long scroll, and a BEFORE label noting 4,200 words across seven viewportsBefore
Long blog article with eight H2 sections stacked top to bottom with no table of contents, a fade-out gradient suggesting a long scroll, and a BEFORE label noting 4,200 words across seven viewports
example.com/blog (after)
The same long blog article on the customer site in a deep-rose and cream palette with a Clean Line table of contents listing eight jumpable headings and an AFTER label noting faster navigationPoper widget live
The same long blog article on the customer site in a deep-rose and cream palette with a Clean Line table of contents listing eight jumpable headings and an AFTER label noting faster navigation

Mockups for illustration. Style the widget to match your site and embed in 90 seconds.

How to use it

How to add a table of contents to your website

Three setup steps. Auto-detect or build it by hand.

  1. 01

    Choose auto-detect or manual mode

    In auto mode the widget scans your page for headings and builds the outline for you. By default it picks up every H2 and H3, and you can change which headings it targets with a CSS selector. Or switch to manual mode and list the entries yourself.

    Poper widget builder showing the content panel with an auto and manual mode toggle, a heading selector field set to h2, h3, and a smooth-scroll switch
  2. 02

    Style the TOC and pick a layout

    Choose from 14 layouts including Clean Line, Glass Card, Dot Steps, Active Pill, Sticky Bar, Numeric Minimal, Nested Tree, Timeline, Modern Tabs, and more. Set the background color, text color, and accent color; header-title rendering depends on the selected layout.

    Layout picker showing table of contents thumbnails (Clean Line, Glass Card, Dot Steps, Active Pill, Cyber HUD, Sticky Bar, Numeric Minimal, Nested Tree) plus background, text, and accent color swatches
  3. 03

    Embed the snippet on a supported page

    Paste the one-line script tag into a supported blog template, docs theme, or landing page. In auto mode the widget scans the available headings when it initializes, based on the selected mode, selector, and embed state.

    One-line embed script tag for the table of contents widget shown in a dark code editor with a Copy button and WordPress, Ghost, Substack, Webflow platform tiles

Works everywhere

Works with every website platform you already use

Drop-in install on WordPress, Shopify, Wix, Squarespace, Webflow, Framer, Ghost, and any HTML-friendly stack. No build step, no developer needed.

WordPress
Shopify
Wix
Squarespace
Webflow
Framer
Ghost
HTML

Plus 250+ other platforms via the embed snippet. If your site can render a <script> tag, it can render the Table of Contents Widget: Auto-Generate an In-Page TOC.

What you get with the Poper Table of Contents widget

Six things that matter when you ship a TOC, not 30 features no one uses.

Auto-builds the outline from your page headings

In auto mode the widget scans the available page headings when it initializes and assembles the table of contents. By default it targets H2 and H3 headings, and a CSS selector lets you change which headings it picks up or point it at a single article container so it skips your nav and sidebar. Any heading without an id gets one assigned automatically, so the jump links work even on pages that were never set up for anchors. Validate auto mode on each content template you plan to use.

Smooth-scroll jump links to every section

Clicking an entry smoothly scrolls the page to the matching heading so readers move through long content without losing their place. Prefer an instant jump? Turn smooth scroll off in the content panel. The clicked entry highlights as the active section.

14 layout styles

Clean Line, Glass Card, Dot Steps, Active Pill, Nested Tree, Timeline, Modern Tabs, and more, all built in.

Manual mode when you want it

Skip auto-detect and list the entries yourself with a built-in editor for control over the outline entries.

Nested Tree layout exposes the full hierarchy

The widget normalizes heading levels and indents nested entries, so an outline with H2 and H3 reads as a clear hierarchy. The Nested Tree layout makes that structure explicit for documentation and reference pages with many sections.

Brand-match colors and a header title

Set the background color, text color, and accent color, and add a header title where the selected layout renders one. Each of the 14 layouts ships with its own tuned default palette, and you can override all three colors to match your page.

Use cases

Where Table of Contents Widget: Auto-Generate an In-Page TOC actually moves the needle

Four buyer types who get the most lift from embedding Table of Contents Widget: Auto-Generate an In-Page TOC on their site.

Long-form blog article layout with a Clean Line table of contents listing eight headings beside the article body

Long blog posts

Give 2,000-word guides a clickable outline so readers jump straight to the section they came for instead of scrolling past everything else.

Developer documentation page with a Nested Tree table of contents showing nested H2 and H3 entries beside code blocks

Developer + product documentation

API references, SDK docs, and knowledge bases benefit from a structured outline. The Nested Tree layout scales from a handful of headings to dozens without losing structure.

Privacy policy page with a numbered table of contents listing ten sections for fast jump-to navigation

Legal + privacy policies

Help visitors jump straight to data retention, cookies, or a specific clause. Use manual mode to control the exact wording and order of every entry.

Academic whitepaper layout with a contents list showing Abstract, Introduction, Methods, Results, Discussion, and References

Research papers + whitepapers

Longform research stays navigable with an outline that mirrors the Abstract, Methods, Results, Discussion structure. The Timeline layout suits chapter-by-chapter reading.

Poper vs other table of contents widgets

Most TOC tools ship one style or lock manual control behind a plugin. Here is how the popular widget builders compare.

 Recommended
Poper
Easy Table of Contents (WP)
Elfsight TOC
Common Ninja TOC
Poper workspace available
Limited views
Limited views
Auto-generates from page headings
Configurable heading selector
Levels only
Levels only
Levels only
Manual entry mode
Partial
Number of layout styles
14
Limited
Limited
Limited
Smooth-scroll jump links
Nested hierarchy view
Partial
Partial
Use the Poper embed snippet in a supported page (no plugin required)
WordPress only
Pricing for unlimited use
Plan details vary
Free
Vendor pricing varies
Vendor pricing varies
Bundled with popups, forms, quizzes, more widgets

Comparison reflects external competitor positioning. Verify current details on each provider's site.

Implementation-focused setup notes.

Publishers, docs teams, and web engineers who switched to Poper.

Zero TOC maintenance
We use auto-detect TOC on our long guides and validate the generated outline when editors change section headings.
Elena Vasquez
Elena Vasquez
Content Manager · Longform Journal
Clear docs hierarchy
The Nested Tree layout was exactly what our docs needed. Dozens of headings, and readers can finally see the whole structure at a glance.
Daniel Foster
Daniel Foster
Docs Lead · RankFlow
Full control over entries
Manual mode let us word every entry on our privacy policy exactly how legal wanted it. The container selector kept our site nav out of the outline.
Chris Park
Chris Park
Web Engineer · DocuStream

Pricing

Simple, yearly pricing. Save up to 40%.

All plans are billed yearly. Each card shows the per-month equivalent. Start free, then upgrade only when you need more campaigns, websites, or AI credits.

Yearly billing · save up to 40%

Starter

Essential lead capture for solo creators and growing businesses.

$15/mo

billed $180/year

  • 5 active campaigns (5 widget instances)
  • 1 website, 1,000 leads/mo
  • 100+ templates, 10+ display formats
  • Smart triggers & basic analytics
  • No Poper branding
  • 500 AI credits
Start with Starter
Most popular

Pro

Full engagement suite with A/B testing, gamification & unlimited leads.

$29/mo

billed $348/year

  • Everything in Starter
  • Unlimited campaigns & leads
  • 10 websites, 5 team seats
  • A/B testing & gamification
  • Multi-step forms & quiz builder
  • Custom domain (CNAME), 2,000 AI credits
Start with Pro

Business

Unlimited everything with white-label, API access & advanced analytics.

$79/mo

billed $948/year

  • Everything in Pro
  • Unlimited websites & team seats
  • White-label (add-on) & API access
  • Logic jumps, live quizzes & polls
  • Payment forms (Stripe/PayPal)
  • Advanced analytics, 5,000 AI credits
Start with Business

Prices shown for the 50k monthly visitor tier on yearly billing. A Free Forever plan ($0) and a custom Enterprise plan are also available. No contracts, cancel anytime.

Guide · 4 min read

The complete guide to adding a table of contents widget to your website

A table of contents is one of the simplest ways to make a long-form article, documentation page, or policy page easier to read. A clear outline lets readers jump straight to the section they came for, gives them a map of what the page covers, and reduces the friction of scrolling through content they do not need. The wrong TOC ships one rigid style, goes stale every time content changes, or makes you hand-maintain a list of links. This guide walks through what actually matters when you add a table of contents widget in 2026: auto-detection versus manual mode, targeting the right headings with a CSS selector, choosing a layout, and the smooth-scroll behavior that ties it together.

01

Auto-detection vs manual mode: two ways to build the outline

The Poper table of contents widget supports two generation modes. In auto mode the widget scans the page DOM for heading tags and builds the outline at runtime, so the TOC is built from the headings available when the widget initializes. When content changes, validate the published page so the scanned outline still matches the headings Manual mode is the alternative: you list each entry yourself in a built-in editor, which gives you precise control over the exact wording and order. Auto mode is the right default for blog posts and documentation that change often. Manual mode is better for pages where you want the TOC label to differ from the on-page heading text, or for content where the headings are not structured the way you want the outline to read, such as a legal policy.

02

Targeting the right headings with a CSS selector

Auto mode is only as good as the headings it picks up. By default the Poper widget targets every H2 and H3 on the page, which is the right choice for most articles. Two controls refine that. First, you can change the heading selector itself: if your documentation goes deeper you can include H4, or you can narrow the outline to H2 only for a shallow summary. Second, you can give the widget a container selector so it scans a single element (your article wrapper) instead of the whole page, which keeps headings from your site navigation, sidebar, or footer out of the outline. The widget also normalizes the levels it finds, so if your article starts at H2 the outline still reads as a clean top-level list with nested children, rather than indenting everything one level too deep.

04

Choosing a layout for your page

The Poper table of contents ships 14 layouts so the same outline fits very different page designs. Clean Line and Numeric Minimal are restrained, typographic treatments that suit editorial articles and documentation. Nested Tree exposes the full heading hierarchy and is the strongest choice for reference docs with many sections. Sticky Bar is a compact horizontal bar of section links. Timeline and Modern Tabs lay the sections out horizontally for chapter-style or multi-section content. Glass Card, Active Pill, Dot Steps, Cyber HUD, Gradient Mask, Brutalist Block, Isometric Blocks, and Notebook Margin are bolder, brand-led styles for sites that want the outline to be a visual feature rather than a quiet utility. Every layout uses the same underlying outline data, so picking one is about visual fit, not a feature trade-off.

05

Where a table of contents helps most

A table of contents earns its place on long pages where that a reader cannot see the whole structure at a glance. Blog posts above roughly 1,500 words benefit clearly: the outline lets a reader who arrived from search jump straight to the part that answers their query. Documentation and knowledge-base articles benefit even more, because readers often return to the same long page to find a specific procedure. Legal and privacy policies are a strong fit for manual mode, since the people reading them are usually hunting for one specific clause. The common thread is reader intent: when visitors come to a long page to find something specific rather than read top to bottom, an outline with jump links is the fastest way to get them there.

Quick reference

What is Table of Contents Widget: Auto-Generate an In-Page TOC?

A table of contents widget is an embeddable script that generates a clickable outline of a page's sections. The Poper widget can auto-detect headings from the page DOM or use a manually entered list, and clicking an entry smoothly scrolls the page to that section.

Key facts

  • The Poper table of contents has two generation modes: auto, which scans the page for headings, and manual, where you list the entries yourself
  • Auto mode targets every H2 and H3 by default, and a CSS selector lets you change which headings it picks up or scope it to one container
  • Clicking an entry smoothly scrolls the page to the matching heading; smooth scroll can be turned off for an instant jump
  • 14 layout styles ship out of the box, from minimalist Clean Line to a Nested Tree hierarchy view and a horizontal Timeline
  • Headings without an id attribute are assigned one automatically so the jump links work even on pages without pre-set anchors
  • The active entry highlights when clicked; the widget uses a click-driven highlight rather than continuous scroll tracking

Last fact-checked: . We re-verify every quarter.

Tutorial

See the Table of Contents Widget in action

A quick walkthrough of setting up and embedding this widget.

Tutorial video coming soon

Frequently asked questions

Can't find the answer you're looking for? Chat with our support team.

Contact Support

Stop letting readers scroll past the section they came for

Poper builds the outline from available page headings in auto mode.

Free plan available forever