外掛說明
SmoothTOC automatically generates a Table of Contents for your posts and pages based on your chosen headings (H2, H3, etc). You can insert the TOC automatically (top or after first paragraph) or manually using the [smooth_toc] shortcode. The plugin is highly customizable, translation-ready, and built to meet WordPress.org review standards.
Features
- Automatic TOC generation: Creates a table of contents based on your post’s headings
- Customizable appearance: Change colors, font size, and width
- Flexible placement: Insert TOC at the top or after the first paragraph
- Heading selection: Choose which heading levels to include (H1-H6)
- Shortcode support: Use [smooth_toc] anywhere in your content for manual placement
- Per-post control: Enable/disable TOC for individual posts
- Mobile-friendly: Responsive design that works on all devices
- Translation-ready: Fully translatable using WordPress translation system
Usage
- Install and activate the plugin
- The TOC will automatically appear in your posts and pages
- Configure your settings under Settings > SmoothTOC
- (Optional) Use the [smooth_toc] shortcode in your posts/pages for manual TOC placement
安裝方式
- Upload the
smooth-tocfolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Settings > SmoothTOC to configure the plugin
常見問題集
-
Can I customize the appearance of the TOC?
-
Yes! You can customize the background color, text color, font size, and width through the plugin settings.
-
How do I disable the TOC for a specific post?
-
Each post has a checkbox in the post editor to disable the TOC for that specific post.
-
Can I use the TOC in my theme’s template files?
-
Yes, you can use the shortcode
[smooth_toc]in your template files or call the functionsmoothtoc_generate_toc($content)directly.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
1.0
- Initial release

