Elementor addon offering 120+ widgets and templates — Elementor Gallery, Slider, Form, Post Grid, Menu, Accord...
A powerful, lightweight Gutenberg block that automatically generates a linked, navigable table of contents from your post headings.
Mocursor Smart TOC is a WordPress plugin that creates a linked table of contents from the headings in your posts and pages. It is designed as a Gutenberg block but also offers a shortcode for users of the classic editor, making it versatile for different content management styles.
The plugin is lightweight and theme-aware, meaning it adapts to your site's design without additional configuration. It is suitable for various types of content, including long-form articles, documentation, online courses, and more, helping users navigate lengthy texts easily.
Best for: This plugin is ideal for anyone creating long-form content, such as blogs, documentation, or educational materials.
What it does well
Where it falls short
Mocursor Smart TOC provides a straightforward solution for adding a table of contents to WordPress content. Its lightweight and accessible design makes it a practical choice for many users.
Moses Cursor Ssebunya's own description of Mocursor Smart TOC, lightly tidied.
Mocursor Smart TOC is a lightweight, feature-packed Gutenberg block that automatically generates a linked table of contents from the headings in your posts and pages. Simply drop it into your content — it just works. Also available as a [mctoc] shortcode for classic editor users.
The block is fully dynamic, accessible, lightweight, and theme-aware. It uses WordPress design tokens and CSS custom properties so it inherits your theme’s colors, fonts, and spacing automatically.
The Mocursor Smart TOC block is also available as a [mctoc] shortcode for use in the classic editor, widgets, or theme templates.
Basic usage:
[mctoc]
With options:
[mctoc title="On This Page" include_h2="true" include_h3="true" include_h4="false" numbering="nested" collapsed="true" sticky="true" offset="100" skip="1" exclude_headings="Related Posts,Comments" back_to_top="true" align="right" justify=""]
Available shortcode attributes:
title — TOC heading text (default: “Table of Contents”)include_h2 — Include H2 headings: “true” or “false” (default: “true”)include_h3 — Include H3 headings: “true” or “false” (default: “true”)include_h4 — Include H4 headings: “true” or “false” (default: “true”)exclude_headings — Comma-separated heading texts to excludenumbering — Numbering style: “none”, “decimal”, or “nested” (default: “none”)collapsed — Start collapsed: “true” or “false” (default: “false”)sticky — Enable sticky mode: “true” or “false” (default: “false”)offset — Scroll offset in pixels for fixed headers (default: 80)skip — Number of headings to skip from the start (default: 0)back_to_top — Show “Back to Top” link: “true” or “false” (default: “false”)align — Floating block alignment: “left”, “center”, or “right”. Left/right allow nearby content to wrap beside the TOC.justify — No-wrap TOC position: “left”, “center”, or “right”. Surrounding content stays above and below the TOC.Mocursor Smart TOC is perfect for:
Other plugins for extending a page builder.
Elementor addon offering 120+ widgets and templates — Elementor Gallery, Slider, Form, Post Grid, Menu, Accord...
Join millions who empower their websites with ElementsKit Elementor Addons. Get templates, & 100+ widgets...
Elementor addons with 18+ free widgets, Header & Footer Builder, WooCommerce widgets & templates. Trus...
Elementor Carousel, Mega Menu, Posts List/Slider, WooCommerce Widgets, Display Conditions, AI Abilities, Prema...
Elementor templates, Header footer builder, Elementor Post Grid, Woocommerce Grid builder, Slider, Forms, Gall...
Disable Gutenberg Block Editor and restore the Classic Editor and original Edit Post screen (TinyMCE, meta box...