
內容目錄
- 1 前言介紹
- 2 外掛協作開發者
- 3 外掛標籤
- 4 內容簡介
- 5 原文外掛簡介
- 6 , , and tags. It is lightweight, mobile-friendly, and works without jQuery. Features: – Automatically detects and anchors h2–h4 headings – Sticky TOC with vertical layout on desktop – Sticky toggleable TOC on mobile – Built-in RTL support (positioning + layout) – Option to disable TOC on individual posts – Option to customize TOC layout from your theme – Auto-generated anchor IDs for headings – Clean CSS, pure JavaScript, no jQuery Theme Override Support To override the default markup or styles: Copy the default template files from the plugin: frontend/partials/toc-template.php assets/css/toc.css assets/js/toc.js Paste them into your theme inside the following folder: your-theme/simple-sticky-toc/ Supported override files: simple-sticky-toc/toc-template.php – custom TOC markup simple-sticky-toc/toc.css – custom styles simple-sticky-toc/toc.js – custom JS behavior 各版本下載點
- 7 延伸相關外掛(你可能也想知道)
前言介紹
- 這款 WordPress 外掛「Simple Sticky TOC」是 2025-08-09 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2025-08-10,不久前才剛更新。
- 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
toc | anchor | sticky | headings | table of contents |
內容簡介
總結:Simple Sticky TOC是一個輕量且移動端友好的WordPress外掛,通過解析<h2>、<h3>和<h4>標籤,自動生成單篇文章或頁面的粘性目錄。它無需jQuery,具備多項功能並支援主題覆寫。
問題與答案:
1. 什麼是Simple Sticky TOC?
- Simple Sticky TOC是一個WordPress外掛,用於自動生成單篇文章或頁面的粘性目錄,通過解析<h2>、<h3>和<h4>標籤實現。
2. Simple Sticky TOC有哪些特點?
- 可自動檢測並鏈接h2至h4標題
- 在桌面上採用垂直佈局的粘性目錄
- 在移動端展示可切換的粘性目錄
- 內建RTL支援(位置和佈局)
- 可在個別文章中禁用TOC的選項
- 可從主題自訂TOC佈局的選項
- 為標題自動生成錨點ID
- 乾淨的CSS、純JavaScript,無需jQuery
3. 如何支援主題覆寫?
- 複製外掛中的默認模板文件:
- frontend/partials/toc-template.php
- assets/css/toc.css
- assets/js/toc.js
- 粘貼到您的主題內以下文件夾中:your-theme/simple-sticky-toc/
- 支援重寫文件:
- simple-sticky-toc/toc-template.php – 自訂TOC標記
- simple-sticky-toc/toc.css – 自訂樣式
- simple-sticky-toc/toc.js – 自訂JavaScript行為
原文外掛簡介
Simple Sticky TOC automatically generates a sticky table of contents for single posts or pages by parsing
