Linux 软件免费装
Banner图

LH Table of Contents

开发者 shawfactor
更新时间 2019年10月4日 14:15
捐献地址: 去捐款
PHP版本: 4.0 及以上
WordPress版本: 5.2

标签

table of contents toc wiki like toc semantic

下载

详情介绍:

This plugin makes it easy to create a wiki like TOC (table of contents) in your posts or pages using shortcode, no linking or creating anchor is needed. Unlike other plugins this is 100% semantic, ie drop the comment string: <!-- lh_toc -->. Into your content body and the plugin will do the rest ie it will generate a table of contents based on the h2 and h3 tags in the content body. If the comment is not included the table of contents is not generated. Features:

安装:

  1. Upload the entire lh-table-of-contents folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Include the string: in the content body where you want the table of contents
  4. Done!

常见问题:

How to style the TOC

I left the styling up to you but the tabel of contents itself has a class of 'lh_table_of_contents', the anchors for h2 tags have a class of 'lh_toc-h2', and the anchors for h3 have a class of 'lh_toc-h3'.

更新日志:

1.00 November 20, 2017\ Initial release. 1.05 November 25, 2017\ Better approach to adding Toc.