Easy Table of Contents

Shortcode

Version: 1.0.5

Shortcode

Place a shortcode where the outline should appear, and override the plugin defaults for that article only.

Use {easy_toc} or {toc}. Put double quotes around values.

{easy_toc}
{toc}
{easy_toc position="rail" rail_side="right" rail_width="200" rail_top="80" title="On this page"}
{easy_toc position="rail" rail_side="left" show_panel="0"}
{easy_toc min_level="2" max_level="3"}
{easy_toc panel_bg="#f8fafc" accent_color="#1819ed" text_color="#0f172a" border_radius="0"}
{easy_toc layout="numbered" theme="bold" title="Contents"}

Common attributes:

  • position: before, after_intro, rail, none
  • rail_side: left or right. rail_width and rail_top for the column
  • min_level, max_level, min_headings
  • layout, theme, title, show_title
  • show_panel, panel_bg, border_color, border_radius, shadow
  • accent_color, text_color, muted_color
  • sticky, scroll_spy, smooth_scroll, scroll_offset

Set Insert Position to None when every outline should come from a shortcode.