Tidy Table of Contents

Changelog

1.0.7

  • Replaced the grid-template-rows collapse trick with a max-height transition. The grid trick would refuse to fully collapse in some themes, leaving a residual strip with the first row of items partially visible. max-height: 0 hides the body cleanly.

1.0.6

  • Fixed the collapsed state leaving a visible padding strip under the header. The body wrapper is now box-sizing: border-box so its padding is included in the collapsed height (full collapse, no leftover band).

1.0.5

  • TOC item sizes inherit from the active theme again (reverts the explicit rem fallback added in 1.0.4).
  • Title bumped to 1.25rem so the SOMMAIRE label stays clearly readable as a header above inherited link sizes.

1.0.4

  • Fixed the toggle button picking up theme button styles (coloured background, padding, hover gradient) β€” the “Table of Contents” header now reliably renders as a plain text label across themes.
  • Hardened TOC item font sizes against context shrinkers (sidebar, nav, .entry-content ul). Sizes are now expressed in rem so they track the theme’s root font size while staying isolated from nested overrides.

1.0.3

  • Default insertion position is now “After first paragraph” (was “Before content”) β€” better reading flow on a fresh install.
  • Removed hardcoded font sizes from the front-end stylesheet (base, title, H2/H3/H4 link sizes). The TOC now inherits typography from the active theme.

1.0.2

  • Removed all rendering code for premium-only features (sticky positioning, “custom” theme with color/radius/border options, reading-time badge). The free plugin now exposes only the three documented free themes (Minimal, Card, Outline) β€” no hidden capabilities behind add-on hooks.

1.0.1

  • Removed all licence checks and premium-feature gating from the free plugin code (premium features are now distributed via a separate companion plugin).
  • Hardened JSON-LD output with JSON_HEX_* flags to prevent script-tag breakouts.
  • Removed the now-unnecessary load_plugin_textdomain() call (handled by WordPress.org translation system since WP 4.6).
  • Added extension hooks for add-on plugins (settings defaults/sanitisation, render options, shortcode atts/headings, settings page, admin/front localized data, plugin row links).

1.0.0

  • Initial release β€” automatic TOC generation, caching, accessibility, per-post control.

Plugin Website
Visit website

Version:
1.0.7
Last Updated
April 28, 2026
Requires
WordPress 6.0
Tested Up To
WordPress 6.9.4
Requires PHP
8.2

Share Post

Join our newsletter.

Get insights into what’s happening at ChangelogWP right in your inbox. We don’t believe in spam.