Back to Home
📝 Shortcode

Shortcode Examples

Flexible integration for Smart TOC Pro

Basic Shortcode
Usage
[smart-toc]
Insert default TOC with your theme settings
Custom Theme Shortcode
Usage
[smart-toc theme="dark"]
Apply specific theme (light, dark, minimal, elegant, modern)
Placement Examples
Before Content
📑 Table of Contents
Article Title

Article content starts here...

[smart-toc position="before"]
After Content
Article Title

Article content here...

📑 Table of Contents
[smart-toc position="after"]
Inline/Custom
Section 1

Content block 1...

Quick Navigation

Content block 2...

[smart-toc position="inline"]
Advanced Parameters
Complex Shortcode
[smart-toc theme="dark" position="floating" collapsible="true" smooth_scroll="true"]
Parameter Values
theme light, dark, minimal, elegant, modern
position before, after, floating, sidebar
collapsible true, false
smooth_scroll true, false
Shortcode Features
Easy to Use Simple shortcode syntax
Flexible Works anywhere
Customizable Many parameters
Zero Coding No development needed