| 开发者 | errynio |
|---|---|
| 更新时间 | 2026年8月20日 18:34 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[rptoc_reading_progress_toc] or [rptoc] shortcode.requestAnimationFrame. The active section is tracked with IntersectionObserver, keeping that work out of the scroll handler.
There is no jQuery dependency and no frontend build framework.
Accessibility
The component uses ordinary anchor links, supports keyboard interaction and identifies the active section with aria-current.
Section links continue to work without JavaScript. JavaScript is required for the progress indicator, active-section highlighting and expandable side rail.
Right-to-left layouts are supported.
Structured data and SEO plugins
Optional ItemList structured data can provide a machine-readable description of the page sections.
The plugin also registers as a recognised table of contents for Rank Math's content analysis, and can run alongside Yoast SEO and All in One SEO.
Privacy
Erryn Reading Progress & Table of Contents does not collect, store or send visitor data.
There are no accounts, external API requests or tracking scripts.
Features
aria-current on the active link./wp-content/plugins/erryn-reading-progress-table-of-contents/, or install the plugin through the WordPress Plugins screen.No. Activate the plugin and it will appear automatically on supported posts and pages that contain enough headings. All settings are optional.
Yes. Open the Reading Progress & Contents panel in the post editor and choose Never show. You can also choose Always show to override the global automatic-insertion rules for that post.
Yes. Add TOC Anchor blocks where you want entries to appear. Once a page contains one TOC Anchor block, the plugin uses the manual anchors instead of generating its contents from headings.
Yes. Use the [rptoc_reading_progress_toc] shortcode. The shorter [rptoc] version is also available.
It can be used in the Classic Editor and page builders that process standard WordPress shortcodes.
The horizontal bar remains available on smaller screens. When the side-rail layout is selected, it automatically switches to the horizontal bar on mobile devices.
No. The plugin adds IDs and its own markup to the rendered page. It does not permanently rewrite the content stored in the WordPress editor.
The plugin attempts to detect the site header automatically. You can also set a custom header offset in pixels when automatic detection does not suit the theme.
Yes.
Under the advanced detection settings, choose the custom selector option and provide the CSS selector for the content area, such as:
article .entry-content
No. The plugin does not track visitors or send data to an external service.
The table-of-contents links remain ordinary anchor links and can still be used. JavaScript is required for the progress fill, active-section highlighting and side-rail interaction.
Yes. The plugin uses CSS custom properties for its colours and spacing, allowing developers to restyle it without editing the plugin files.
No. The optional ItemList markup provides a machine-readable description of the page sections, but it does not guarantee a particular search-result treatment or ranking improvement.