承接 humanmade/hm-toc 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

humanmade/hm-toc

最新稳定版本:1.1.7

Composer 安装命令:

composer require humanmade/hm-toc

包简介

WordPress plugin that adds anchors to headings in post content and generates table of contents from headings.

README 文档

README

WordPress plugin with the following features:

  • Generate table of contents that lists all headings (Ordered hierachically) in post content.
  • Automatically add anchors links after all headings in post content.
  • Block to add these to pages and template.
  • Adds 'active' class to the current heading in the table of contents.

FAQ

I don't want to automatically add anchor links to headings.

You can remove the filter that adds these with the following snippet. Doing it like this means that the plugin will still ensures headings all have IDs.

// Don't append an anchor link to each heading.
add_filter( 'hm_toc.contents.anchor_html', '__return_empty_string' );

统计信息

  • 总下载量: 2.58k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 10
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-09-06