SmoothTOC

外掛說明

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

  1. Install and activate the plugin
  2. The TOC will automatically appear in your posts and pages
  3. Configure your settings under Settings > SmoothTOC
  4. (Optional) Use the [smooth_toc] shortcode in your posts/pages for manual TOC placement

螢幕擷圖

  • screenshot-1.png

安裝方式

  1. Upload the smooth-toc folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. 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 function smoothtoc_generate_toc($content) directly.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈SmoothTOC〉的開發相關工作。

參與者

將〈SmoothTOC〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • Initial release