Products /WordPress Plugin /Smart TOC – A Table of Contents That Satisfies All Your Needs.
WordPress Plugin Free

Smart TOC – A Table of Contents That Satisfies All Your Needs.

***** 4.7 - 3,841 downloads
Live Preview →
Version3.4.0
PHP8.1+
LicenceOpen
Features
Auto-Insert After N Paragraphs
Sidebar Widget with Global Style Control
Full Style Customizer with Live Preview
Hierarchical Navigation with Scroll Spy
Shortcode with Per-Post Overrides
Works on Any Post Type
Tech Stack
Word Press Plugin

Smart TOC

Smart Table of Contents — WordPress Plugin

Version 2.0  ·  Developed by KeyBrains

wordpress.org/keybrains

Product Overview

Smart TOC is a powerful, lightweight WordPress plugin that automatically generates a Table of Contents from your post or page headings. Designed for publishers, bloggers, and content-heavy websites, it improves navigation, increases time-on-page, and gives readers an instant overview of your content structure.

Built by KeyBrains, Smart TOC delivers a professional reading experience with zero configuration required out of the box — yet offers deep customization for those who want full control over appearance and behavior. The plugin is built to the highest WordPress development standards: clean code, no bloat, and no external dependencies.

Core Features

Auto-InsertInjects the TOC automatically after a configurable number of paragraphs. No shortcodes required.
ShortcodeUse [smart_toc] anywhere in post content. Override title and heading levels per instance.
Sidebar WidgetDrop into any registered sidebar. Reads all style settings from the central Settings page.
Style CustomizerFull control: background, border color, accent width, radius, padding, title & link fonts and colors.
Live PreviewThe style panel shows a real-time preview of your TOC before saving.
Scroll SpyAutomatically highlights the current section in the TOC as the reader scrolls.
Smooth ScrollAnimated scroll-to-heading when a TOC link is clicked.
Collapse ToggleOptional button for readers to show or hide the TOC.
HierarchicalH2 → H3 → H4 shown in a properly indented nested list with visual guide lines.
Heading LevelsChoose any combination of H1–H6 to include.
Min HeadingsConfigurable threshold — TOC only appears when content is long enough to need it.
Theme DefaultOne checkbox to inherit all styles from the active theme.

Screenshots

Figure 1 — General settings: title, heading levels, and behavior options

Figure 2 — Insertion method: automatic mode with post type and paragraph controls

Figure 3 — Style customizer with live preview updating in real time

Figure 4 — Frontend: inline TOC and sidebar TOC on the same article

Figure 5 — Smart TOC widget in the WordPress Widgets screen

Figure 6 — Example dark theme customization

Installation

Via WordPress Dashboard

  • Navigate to Plugins → Add New → Upload Plugin.
  • Upload the smart-toc.zip file and click Install Now.
  • Activate the plugin.

Via FTP / Manual

  • Extract smart-toc.zip to /wp-content/plugins/smart-toc-clean/.
  • Activate from the Plugins screen in WordPress admin.

Configuration Guide

Step 1 — General

Go to Settings → Smart TOC. Set your TOC title, minimum headings threshold, which heading levels to include, and enable optional features (toggle, hierarchical, smooth scroll, scroll spy).

Step 2 — Insertion Method

Choose Shortcode to place [smart_toc] manually in content, or choose Automatic to inject it on selected post types after a specific paragraph number.

Step 3 — Style

Uncheck “Use theme default styles” to open the customizer. Adjust all visual properties and watch the live preview update instantly. Click Save Settings when satisfied.

Step 4 — Sidebar Widget

Go to Appearance → Widgets. Drag the Smart TOC widget into your sidebar. All styling comes from Settings → Smart TOC — no per-widget configuration needed.

Shortcode Reference

[smart_toc]
[smart_toc title=”In This Article” levels=”h2,h3″ hierarchical=”1″ toggle=”1″]

Shortcode attributes:

titleOverride the TOC heading label for this instance.
levelsComma-separated heading levels, e.g. h2,h3,h4.
hierarchical1 = nested list, 0 = flat list.
toggle1 = show collapse button, 0 = hide it.

Smart TOC Live Demo

Author Profile on WordPress.org

KeyBrains Website

Code Preview
[smart_toc] [smart_toc title="In This Article" levels="h2,h3" hierarchical="1" toggle="1"]