Shortcode Table of Contents

Shortcode Table of Contents Install Statistics

11
100%
Today: 11 Yesterday: 0 All-time: 26,741 downloads
Shortcode Table of Contents Icon

Try plugin: Shortcode Table of Contents

We'll create fresh WordPress site with Shortcode Table of Contents installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Shortcode Table of Contents

Display an automated table of contents via shortcode.

5


0


1


0


0

updated: 6 years ago
since: 6 years ago
author: James Kemp

Description

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:

  • content string required
    A CSS selector indicating the container of your content.
  • headers string
    A comma separated list of heading selectors that you want to include.
  • speed int
    Speed of sliding back to top.
  • anchor-class string
    Class of anchor links.
  • anchor-text string
    Prepended or appended to anchor headings. Leave blank to disable anchor links.
  • top_class string
    Back to top button or link class.
  • spy true/false
    Enable scroll spy. This will highlight the list items as you scroll past them.
  • position append/prepend
    Position of anchor text.
  • spy-offset int
    Specify heading offset for spy scrolling.