开发者 | shawfactor |
---|---|
更新时间 | 2019年10月4日 14:15 |
捐献地址: | 去捐款 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 5.2 |
<!-- 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:
lh-table-of-contents
folder to the /wp-content/plugins/
directory.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'.