These settings apply to every table on the site. To change them for one page only, see Show, hide or change the table on one page.
Choose the heading levels
- Go to Settings→AriTOC→Where.
- Under Heading levels, tick the levels to list. H2, H3 and H4 are ticked by default.
- Click Save changes.
Sub-headings nest under the closest earlier heading of a higher level. To show one flat list, untick Nest sub-headings under their parent on the Look tab.
Skip headings by their text
- Go to Settings→AriTOC→Where.
- In Skip headings by text, enter one heading per line. Each line must match the whole heading, in any case. Use
*as a wildcard:Related posts,FAQ*,*sponsored*. - Click Save changes.
Skip headings by CSS class
- Go to Settings→AriTOC→Where.
- In Skip headings by CSS class, enter the classes, separated by spaces, for example
widget-title sidebar-heading. - Click Save changes.
Headings with the class no-toc are always skipped. So are the classes aritoc-skip, ez-toc-exclude-headings, lwptoc-skip and simpletoc-hidden, and headings with the attribute data-aritoc-skip.
Skip one heading
- In the block editor, select the heading.
- Open Advanced in the block settings and add the CSS class
no-toc. - Save the post.
Show a shorter label for one heading
- In the block editor, select the heading and choose Edit as HTML from the block's options menu.
- Add
data-aritoc-label="Short label"to the heading tag, for example<h2 data-aritoc-label="Pricing">What AriTOC costs and why</h2>. - Save the post. The table shows the label; the heading on the page keeps its full text.
Headings AriTOC always ignores
Headings inside pre, script, style, textarea, template, noscript and form elements are never listed, so code samples and forms do not end up in the table. Empty headings are skipped too.
Anchors you already set are kept
A heading that already has an HTML anchor keeps it. AriTOC only adds anchors to headings without one, and never reuses an id already used in the post content, or one that themes commonly use, such as comments, content or main.
Still stuck?
Our helpdesk answers on working days, Norwegian time. Include your WordPress version, PHP version, AriTOC version and the page address.