WordPress 目录插件
Heroic Table of Contents is the easiest way to add a Table of Contents to your site.
目录或索引部分允许读者轻松地浏览站点上的页面。英雄式目录块自动检测页面上的标题、4 种内置样式、显示选项等。
功能: -
- 在几秒内添加内容章节到页面
- 从 4 个预制的目录风格中选择
- 隐藏并且重新标签头部二不需要改变原有的内容.
- 选择要在目录中显示的标题.
- 展开和折叠内容部分
- 放置内容章节到任意地方
- 选择 bulleted,numbered 或者 plain 列表
- 使用多个目录块来分解和索引冗长的内容.
- Works with templates and individual posts/pages with Template Mode
- Automatic template detection with helpful context-aware guidance
- 移动端友好
- SEO 友好
About HeroThemes
HeroThemes develop some of the best WordPress plugins, tools and themes, with over 26,000 customers and counting. If you like this plugin and want more news, themes and plugins, you can do the following:
通过 WordPress 来安装 Heroic Table of Contents
- 访问你工作面变,并且选择"Add New" 来访问插件页面
- 搜索"Heroic Table of Contents";
- 从你的"插件"页面 激活 Heroic 目录
- 去到"after activation"
手动安装 Heroic 目录
- 上传并且解压"heroic-toc" 文件夹到你的网站/wp-content/plugins/ 目录;
- 通过在 WordPress 中的"Plugins"页面来激活 Heroic 目录
- Go to "after activation" below.
激活之后
You can now create a table of contents by adding the Heroic Table of Contents block to your content using the
+ button in the WordPress block editor.
1.2.6
(17 Nov 2025)
(Fixed) Table of Contents submenus now automatically collapse and expand based on scroll position in post mode
(Fixed) Scan levels (heading selection H1-H6) now work correctly on the frontend - headings are properly filtered based on selected levels
(Fixed) Editor styles no longer load on frontend - prevents conflicts with other plugins and WordPress components
(Fixed) Block validation errors when opening posts with older TOC blocks - added proper deprecation handling
(Improved) Proper nested list HTML structure for better accessibility and styling
1.2.5
(26 Oct 2025)
(Fixed) Table of Contents now displays correctly on your live site without editor buttons or preview content showing
(Fixed) Text size in the Table of Contents now appears correctly on the frontend
(Fixed) Preview sample content no longer appears on published pages and posts
(Fixed) Block editor validation errors when editing templates
(Improved) Table of Contents now works perfectly on mobile and tablet devices with proper responsive display
(Improved) Renamed Is Single Post to Template Mode (Post Content Scope) with clear descriptive help text
(Improved) Added context-aware guidance to help users know when to enable Template Mode for templates
(Improved) Automatic template detection now shows helpful warning when Template Mode should be enabled
(Improved) Enhanced empty state message with tips for template usage
1.2.4
(16 Oct 2025)
(Fixed) Site editor preview mode now correctly displays sample content for post templates
(Fixed) Console warning about CSS being added to iframe incorrectly
(Improved) Post support with Update Font Size
1.2.3
(5 Jun 2025)
(Improved) Post support with sticky Table of Contents
(Updated) Improvements and testing for WordPress 6.8
1.2.2
(22 May 2024)
(Improved) Tweaks and compatibility checking for WordPress 6.5
1.2.1
(19 May 2022)
(Improved) Tweaks and compatibility checking for WordPress 6.0
(Improved) Removed block from non-editor screens where it is not relevant
(Improved) Now supports Reusable blocks
1.2.0
(14 Jul 2021)
(更新) 优化并且测试 WordPress 5.8
1.1.2
(8 2 月 2021)
(修复) Readme.txt 格式
1.1.1
(29 Jan 2021)
(修复) 添加缺失的 script.min.js 文件
1.1.0
(28 1 月 2021)
(修复) 目录输出的语义 HTML 标记
(优化) 优化脚本并删除 jQuery 依赖项
(优化) 数学排名支持,SEO 用于目录
(优化) H1 标题现在已经忽略
1.0.2
(26 8 月 2020)
(修复) 编辑器中的 React 警告
(优化) 编辑器风格
1.0.1
(14 4 月 2020)
(优化) 风格提升
1.0
(16 5 月 2020)
(新)初始版本