WP Manifestindependent plugin directory
manifest / editor / cslice-table-of-contents

Creative Slice - Table of Contents Block

Block showing table of contents with dynamic links to headings on the page

★ 0stars
12release downloads
2025.02.11alatest · 1 year ago

Install

Download cslice-table-of-contents.zip From the 2025.02.11a release on GitHub, Feb 11, 2025

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.zip
Updates 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

  1. Install dependencies:

    npm install
  2. Start development server:

    npm start
  3. Build for production:

    npm run build
  4. 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
2025.02.11a latest
Feb 11, 2025 1 year ago
cslice-table-of-contents.zip
4
Feb 11, 2025 1 year ago
cslice-table-of-contents.zip
6
Feb 11, 2025 1 year ago
cslice-table-of-contents.zip
2