Shortcode Table of Contents
·
Display an automated table of contents via shortcode.
Rating
4.7/5
Version
1.0.3
Active installations
300
Last updated
Jul 31, 2018
Simply use the [toc content=".your-container"] shortcode to automatically generate a table of contents for any HTML container.
The shortcode accepts a number of parameters:
contentstring required A CSS selector indicating the container of your content.headersstring A comma separated list of heading selectors that you want to include.speedint Speed of sliding back to top.anchor-classstring Class of anchor links.anchor-textstring Prepended or appended to anchor headings. Leave blank to disable anchor links.top_classstring Back to top button or link class.spytrue/false Enable scroll spy. This will highlight the list items as you scroll past them.positionappend/prepend Position of anchor text.spy-offsetint Specify heading offset for spy scrolling.
This plugin is available for download for your site.
