Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/creativeslice/cslice-table-of-contents/releases/download/2025.02.11a/cslice-table-of-contents.zipUpdates itself. It ships its own updater, so new versions appear under Dashboard → Updates.
Table of Contents Block
A WordPress block plugin by Creative Slice that adds a dynamic table of contents block, automatically generating navigation from page headings.
Features
- Automatically generates navigation from page headings
- Tracks scroll position and highlights active section
- Two display styles:
- Default vertical list
- Horizontal scrolling navigation
- Full block editor customization:
- Typography settings with font size and weight controls
- Background color with opacity support
- Border controls (color, width, style, radius)
- Box shadow
- Spacing (margin and padding)
- Wide and full width alignment
- Blur effect for semi-transparent backgrounds if white background is used
- No JavaScript overhead on pages without TOC
- Clean, efficient vanilla JS scroll tracking
Requirements
- WordPress 6.7 or later
- PHP 8.0 or later
- Node.js 20+ for development
Development
-
Install dependencies:
npm install -
Start development server:
npm start -
Build for production:
npm run build -
Create plugin zip:
npm run plugin-zip
Releases
3 releases. Each count is every asset in that release; expand a row for the breakdown.
Tag
Published
Assets
Downloads