WordPress Table of Contents Plugin: WCAG Accessible Jump Links With Zero Bloat

wpforgehub Avatar

• Core Team at WPForgeHub

Editorial cover: WordPress Table of Contents With WCAG Accessibility and Zero Bloat with 3D logo

Adding a WordPress table of contents to your long guides and tutorials does two things immediately: it helps impatient readers jump directly to the answer they came for, and it gives search engines clean anchor links that frequently appear as clickable jump links right inside search results. Yet many popular TOC plugins still ship jQuery dependencies, load CSS on every single page of your site, and fail basic keyboard accessibility checks.

If your site uses a sticky top navigation bar, you have probably seen another classic frustration. A visitor clicks a table of contents link, the browser jumps to the heading, and your fixed header covers the title completely. Solving that cleanly takes a tiny configurable scroll offset, not a 90 KB animation library.

Semantic HTML, Keyboard Navigation, and Conditional Asset Loading

A proper table of contents should render inside a semantic nav landmark with a real button element, keyboard accessible expand and collapse controls, and high contrast colors that pass WCAG 2.1 AA out of the box. Just as importantly, if you already wrote custom anchor IDs on specific headings for documentation links, the plugin must preserve them instead of overwriting them and breaking incoming links.

We built ForgeHub Auto TOC around those exact engineering rules. The Free edition parses H2, H3, and H4 headings automatically, generates clean unique anchor slugs without touching existing IDs, inserts itself before the first H2 or wherever you place the shortcode, and loads frontend CSS and JavaScript strictly on singular posts where the TOC actually renders.

Heavy Legacy TOC Plugins vs Lightweight Accessible Auto TOC

Requirement Legacy TOC Plugin ForgeHub Auto TOC
Automatic H2 to H4 heading parsing & ID preservation Often overwrites existing heading anchors Preserves manual IDs and generates unique slugs (Free)
WCAG 2.1 AA collapsible nav & keyboard support Clickable divs with low contrast defaults Semantic nav landmark, aria expanded & AA contrast (Free)
Smooth scroll with sticky header pixel offset Requires manual CSS tweaks Built in configurable header offset (Free)
Sticky floating sidebar, scroll spy & reading progress bar Heavy third party JS or unavailable Vanilla JS floating sidebar, scroll spy & progress bar (Pro)
Asset loading on homepage & archives Loads globally across every URL Zero bytes loaded unless TOC is active on that post

Upgrading Long Tutorials With Floating Sidebar Navigation

For standard blog posts, a collapsible inline box before the first H2 gives readers an effortless overview without taking over the screen. You can also turn off the table of contents on any individual entry using the lightweight sidebar metabox, or drop the shortcode into a custom layout slot whenever you want manual placement.

For deep technical documentation, pillar guides, and product comparisons, keeping navigation visible as readers scroll dramatically increases time on page. The optional Pro edition at the ForgeHub Auto TOC pricing section adds a floating desktop sidebar TOC, real time scroll spy active heading highlighting, a customizable reading progress bar, Custom Post Type support, and five clean visual themes including hierarchical decimal numbering.

Review the open source code on GitHub and give your readers fast, accessible navigation today.

Build with WPForgeHub Micro Tools

Try ForgeHub Auto TOC Free Today

Automatic WordPress Table of Contents from H2 to H4 headings with WCAG 2.1 AA collapsible UI, smooth scroll offset, and optional Pro sticky sidebar & scroll spy.

Download Free ZIP
View Plugin Details
Optional Pro & Priority Support

Build with WPForgeHub Micro Tools

We build lightweight, single-purpose WordPress plugins with zero server bloat and BYOK AI. Check out our open-source tools on GitHub.