Mô tả
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
Cài đặt
- Upload the
smooth-toc
folder to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Settings > SmoothTOC to configure the plugin
Hỏi đáp
-
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.
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
Dịch “SmoothTOC” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
1.0
- Initial release