BareTOC – Lightweight Table of Contents
A lightweight, unstyled, and SEO-friendly table of contents for WordPress.
★ 0stars
3release downloads
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/dhanushrs1/baretoc/releases/download/v1.3.4/baretoc-v1.3.4.zipDeclares an update source (https://api.sitefueler.com/updater/baretoc/), so updates arrive through the plugin's own updater.
From the readme
BareTOC
BareTOC is a standalone SiteFueler WordPress plugin that creates a clean, semantic table of contents from post headings.
Its rule is simple: the plugin owns structure; the active theme owns design. Regular post-content use has no appearance CSS, no JavaScript, no external requests, and no additional database query by default. A tiny structural header rule is always included. A small local script loads only when a page-builder template needs rendered-page heading discovery, smooth scrolling is enabled, or a shortcode explicitly enables the toggle.
Features
- [baretoc] shortcode with per-instance overrides
- reusable page-builder and single-template shortcode support
- selectable H1–H6 levels (H2–H4 by default)
- valid nested list hierarchy, including skipped heading levels
- generated collision-safe heading IDs
- preservation of every existing ID, class, and heading attribute
- numbered, bulleted, and marker-free list modes
- smart removal of duplicate heading numbers from TOC labels
- configurable title and minimum heading count
- optional shortcode-only full-header open and close trigger with one accessible plus/minus icon
- optional global smooth open/close animation
Read the full README on GitHub →