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.
- Upload the entire
lh-table-of-contentsfolder to the
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Include the string: in the content body where you want the table of contents
- 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’.
Contributi e sviluppo
“LH Table of Contents” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.Collaboratori
Changelog (registro delle modifiche)
1.00 November 20, 2017
1.05 November 25, 2017
Better approach to adding Toc.