Heroic 目录

描述

WordPress 目录插件

Heroic Table of Contents 是最简单的方法来添加目录到你的站点

目录或索引部分允许读者轻松地浏览站点上的页面。英雄式目录块自动检测页面上的标题、4种内置样式、显示选项等。

功能: –

  • 在几秒内添加内容章节到页面
  • 从4个预制的目录风格中选择
  • 隐藏并且重新标签头部二不需要改变原有的内容.
  • 选择要在目录中显示的标题.
  • 展开和折叠内容部分
  • 放置内容章节到任意地方
  • 选择bulleted,numbered 或者 plain 列表
  • 使用多个目录块来分解和索引冗长的内容.
  • Works with templates and individual posts/pages with Template Mode
  • Automatic template detection with helpful context-aware guidance
  • 移动端友好
  • SEO 友好

关于Hero Themes
HeroThemes开发了额一些好的WordPress插件,工具一级主题,有超过26,000客户。如果你喜欢这个插件,并且想要更多的新闻,主题一级插件,你可以跟随如下:

屏幕截图

  • Heroic 目录添加目录章节到你的内容
  • 添加Heroic 目录区块,通过编辑器旁边的+号
  • 目录会自动的通过标题(H1,H2,H3 等) 来生成
  • 包含4个构建的风格,可折叠的内容列表并选择要包含/排除的标题
  • 显示/隐藏 并且重新标签headings 通过点击在图标中,当区块选择的时候
  • 选择contents list 风格
  • 添加自定义链接到 Table of Contents (测试功能)

安装

通过WordPress 来安装Heroic Table of Contents

  1. 访问你工作面变,并且选择”Add New” 来访问插件页面
  2. 搜索”Heroic Table of Contents”;
  3. 从你的”插件”页面 激活 Heroic 目录
  4. 去到”after activation”

手动安装 Heroic 目录

  1. 上传并且解压”heroic-toc” 文件夹到你的网站/wp-content/plugins/ 目录;
  2. 通过在WordPress中的”Plugins”页面来激活Heroic 目录
  3. 去到”after activation”

激活之后

你现在可以再WordPress区块编辑器中通过点击+按钮来创建你的目录。

常见问题

谁应该使用Heroic 目录?

这个插件允许你添加内容(目录,索引,页面导航或者你想要调用的内容)到你的WordPress文章,页面以及文章.

Heroic 能够在我的主题中进行工作吗?

Heroic 目录设计是可以用于任何的WordPress主题

Heroic Table of Contents 已经翻译了吗?

是的,Heroic 目录已经有完整的翻译和本地化支持.

When should I enable Template Mode?

Enable “Template Mode (Post Content Scope)” when adding the Table of Contents block to post templates, page templates, or custom post type templates. Leave it disabled when adding the block directly to individual posts or pages. Template Mode tells the block to scan for headings within post-content blocks, which is necessary for template-based usage. The plugin will automatically detect if you’re working in a template and show a helpful warning if Template Mode needs to be enabled.

我有一个问题

请随意联系我们,通过herothemes.com/contact/了解更多的问题

我怎么获得支持?

如果你的Heroic Table of Conetents WordPress 插件有问题,你可以到我们的支持论坛wordpress.org 或者点击查看知识库herothemes.com/support/.

评价

2025 年 6 月 9 日
This is a breath of fresh air and feels actively maintained and loved. The automatic heading detection works like magic, and having 4 built-in styles saves tons of design time. Really appreciate being able to hide/relabel headings without touching the original content – that’s smart! The expand/collapse feature is perfect for long posts. While it’s still growing (6k installs), the recent updates and stellar reviews suggest HeroThemes is committed to making this a winner.
2022 年 2 月 1 日 2 回复
Wonderful block for Gutenberg.
2021 年 8 月 10 日 3 回复
Hi. Would you create a fixing (and put it as an option on the plugin options) to fix the problem of the anchor going to very top of the viewport, but when the page has a top floating navbar, the anchors are hidden by the navbar. I´ve tried to fix it using css, but got no success. May you update it on the next plugin update?
2021 年 5 月 4 日
I needed a Gutenberg friendly TOC plugin for my elearning site, and this is working almost perfectly. One more feature I need is, support for multiple pages using WP’s page break feature. Designs are way better than TOC+ and other major TOC plugins.
阅读所有9条评价

贡献者及开发者

「Heroic 目录」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Heroic 目录」插件已被翻译至 5 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Heroic 目录」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.2.7

(7 Jan 2026)

(Fixed) Customizer compatibility with certain third party themes – ToC JavaScript skipped in Customizer while CSS remains for proper styling

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)

(新)初始版本