[WordPress] 外掛分享: Tavoos Article TOC

首頁 › 外掛目錄 › Tavoos Article TOC
WordPress 外掛 Tavoos Article TOC 的封面圖片
全新外掛
安裝啟用
—
尚無評分
剛更新
最後更新
—
問題解決
WordPress 6.2+ PHP 7.4+ v1.0.0 上架:2026-10-14

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Tavoos Article TOC」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Tavoos Article TOC builds a navigation box from article headings. It does not summarize prose or use AI. Article text and saved heading IDs are never rewritten in the database.
By default, it runs on single posts containing at least three H2 headings. The box appears immediately before the first eligible heading, opens on desktop (768px and up), and stays collapsed on smaller screens. Native details/summary controls support keyboard operation.
Tavoos Article TOC focuses on article navigation for Persian and other Unicode content. It combines RTL-aware styling, preserved authored heading IDs, collision-safe generated anchors, keyboard focus on the destination heading, reduced-motion scrolling, and compatibility with the original Tavoos TOC snippet. Assets are local and loaded only on eligible singular pages.
Features:

Heading levels H2-H6, public post types, threshold, title, position, expansion, and scroll offset settings.
Scoped WordPress content detection with an optional article-body CSS selector for custom themes.
Preserved authored IDs, collision-safe Unicode anchors, and safe aliases for duplicate authored IDs.
Keyboard focus moves to the selected heading; reduced motion produces immediate scrolling.
Native browser smooth scrolling with no animation loops; fragment history supports Back and Forward.
Translation-ready interface using the tavoos-article-toc text domain; logical CSS properties for RTL and LTR.
No external API, CDN, fonts, telemetry, cookies, or visitor storage.
Local files and small dependency-free JavaScript, loaded only for eligible singular content.

The plugin requires JavaScript. With JavaScript disabled, the article remains readable without a table of contents. Themes must call wp_head(), wp_footer(), and normally the_content(). Where the_content() is bypassed, set the custom article-body selector; never target body or html. A malformed selector results in no table.
Heading links are a flat ordered list with visual indentation for selected subheading levels. Headings inside nav, aside, footer, header, hidden/aria-hidden regions, .tvs-upd, .tvs-rel, .tavoos-toc-exclude or [data-tavoos-toc-exclude] are excluded. Content added after page load requires the documented refresh event.

延伸相關外掛

文章
Filter
Mastodon