Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
Add a lightweight table of contents block to your site's editor.
Add a lightweight table of contents block to your site's editor.
This plugin adds a table of contents block to the editor, designed for site builders and content creators who need a simple, fast way to add navigation to long-form content. It generates a nested list directly from the headings in your post, providing clickable jump links for readers.
Server-side rendering: The table of contents is generated by PHP on the server, resulting in clean, minimal HTML output without relying on client-side JavaScript for core functionality.
Clean markup: It outputs a standard unordered list (<ul>) with a heading, ensuring compatibility with most themes and avoiding bloated or complex HTML structures.
Editor integration: As a native block, it can be placed anywhere in your content and updates automatically when you modify the post's headings within the editor.
Lightweight approach: The plugin avoids unnecessary features like smooth-scrolling JavaScript and excessive styling options, focusing on delivering a fast, functional table of contents.
Translation-ready: The default 'Table of Contents' heading is prepared for translation, making it suitable for multilingual sites.
No comments yet. Be the first to start the conversation!