plugin-icon

Shortcode Table of Contents

Door jamesckemp·
Display an automated table of contents via shortcode.
Waardering
4.7/5
Versie
1.0.3
Actieve installaties
300
Laatst bijgewerkt
Jul 31, 2018
Shortcode Table of Contents

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.
Gratisop Business abonnement
Door te installeren, ga je akkoord met de Servicevoorwaarden van WordPress.com en de voorwaarden voor plugins van derden.
Getest tot
WordPress 4.9.28
Deze plugin kan worden gedownload, zodat je hem op je kan gebruiken.