
內容簡介
Devmont TOC Navigator 讓您輕鬆為文章和頁面添加乾淨且可訪問的目錄,提升使用者體驗並增強網站的可讀性。
【主要功能】
• 簡單的短碼 [dtocn_toc] 和 Gutenberg 區塊
• 固定目錄,平滑的偏移滾動和主動連結高亮
• 可摺疊標題,配有旋轉圖示
• 精細的樣式控制(標題、連結、容器)
• 行內 CSS 生成以優化效能
• 符合 WordPress 標準的安全設置和逃逸處理
外掛標籤
開發者團隊
原文外掛簡介
Devmont TOC Navigator makes it easy to add a clean, accessible table of contents to your posts and pages.
Features:
– Shortcode [dtocn_toc] and Gutenberg block
– Sticky TOC with smooth offset scrolling and active link highlighting
– Collapsible header with rotating icon
– Fine-grained styling controls (Header, Links, Container)
– Inline CSS generation for optimal performance
– Sanitized settings and safe escaping following WordPress standards
Shortcode
[dtocn_toc]
Attributes:
– heading_levels: Comma-separated list of headings to include (e.g. h2,h3,h4). Default: h2,h3
– float: none | left | right. Default: none
– toc_sticky: yes | no. Default: no
Example:
[dtocn_toc heading_levels=”h2,h3,h4″ float=”right” toc_sticky=”yes”]
Block
Adds a “Smart TOC” block with the same options as the shortcode.
Accessibility
Uses semantic buttons and aria attributes for the accordion toggle
Screen-reader-only label for the heading level data
