Go to Settings→AriTOC. You need the manage_options capability, which administrators have. The screen has six tabs: Overview, Placement, Headings, Appearance, Navigation and Tools. Changes on every tab are saved together with Save changes; the save bar shows when something is not saved yet, and WordPress warns you before you leave the page with unsaved changes.
The Preview beside the settings updates as you change options. Under Preview with, choose Sample headings or one of your own pages to see the table built from real content.
Overview
How AriTOC works on your site sums up the saved settings in a few plain sentences. If settings from another table of contents plugin are found, a notice links to the Tools tab, where you can copy them.
Check a page: choose a page under Page to check and click Check. You see whether that page gets a table and why, and for every heading whether it is listed or skipped, and the reason. The check uses the settings on the screen, including changes you have not saved yet, so you can try a setting before you save it.
Place the table yourself lists the block, the [aritoc] shortcode, the widget, the function for theme files and the options for one heading. See Place the table with the block, shortcode or widget.
Placement
Where the table is inserted automatically. The block, the shortcode and the widget work everywhere, whatever you choose here.
| Setting | What it does | Default |
|---|---|---|
| Insert automatically on | Post types that get the table automatically. Lists every public post type except media. Each page can still show or hide its table in the editor’s Table of contents box. | Posts, Pages |
| Position | Before the first heading, After the first heading, After the first paragraph, Top of the content or Bottom of the content. | Before the first heading |
| Minimum headings | Pages with fewer listed headings get no table, wherever it is placed: also the block, shortcode and widget. 1 to 20. | 3 |
Headings
Which headings are listed, and the links they get.
| Setting | What it does | Default |
|---|---|---|
| Heading levels | Which levels, H1 to H6, are listed. | H2, H3, H4 |
| Skip headings by text | One per line. Matches the whole heading, any case. * is a wildcard: Related posts, FAQ*, *sponsored*. | Empty |
| Skip headings by CSS class | Classes separated by spaces. Headings with the class no-toc are always skipped. | Empty |
| Paginated posts: List headings from every page of posts split with the Page Break block | One table lists the headings of every page of a paginated post and links across pages. | On |
| Anchor format | Readable, any language (#how-it-works, #সূচিপত্র), Latin letters only (#how-it-works) or Numbered (#section-1, #section-2). Headings that already have an HTML anchor keep it. Changing the format changes links people may have shared. | Readable, any language |
| Anchor prefix | Text added before each generated anchor, such as toc. Up to 20 characters. With Numbered it replaces section. | Empty |
| Heading links: Show a # link next to each heading so readers can copy a link to that section | Adds a # link inside each listed heading. Clicking it copies the link on sites served over HTTPS. | Off |
Appearance
How the table looks. The preview updates as you change these.
| Setting | What it does | Default |
|---|---|---|
| Title | The table heading. Leave it empty to use “Table of contents” in each visitor’s language. | Empty |
| Title display: Show the title (screen readers always get it) | Shows the title above the list. When it is off, screen readers still get the title. | On |
| Theme | Light, Dark, Automatic (follows the visitor’s device), AriHub gradient, Minimal (no box), Inherit my theme’s colors or Custom colors. | Light |
| Colors | Shown with Custom colors only: background, text, links, and border and lines. The link colour is also used for the section being read. A warning appears when a pair of colours has a contrast below 4.5:1, which is hard to read for some visitors. | Empty |
| Numbering | No numbers, Nested numbers (1, 1.1, 1.2), Numbers per level (1, 2, 3), Roman numerals (I, II, III), Letters (a, b, c) or Bullets. | Nested numbers (1, 1.1, 1.2) |
| Width | Fit to content, Full width or Medium (75%). | Fit to content |
| Alignment | Normal, Centered, Float left, text wraps around or Float right, text wraps around. A floating table is at most 360 pixels or half the content wide, and sits above the text on small screens. | Normal |
| Layout: Nest sub-headings under their parent | Nests each heading under the closest earlier heading of a higher level. Off shows one flat list. | On |
| Layout: Two columns on wide screens (for long lists) | Splits the list into two columns on wide screens. | Off |
| Collapsing: Let visitors collapse the table | Visitors can open and close the table. Uses the browser’s own details element, so it works without JavaScript. | On |
| Collapsing: Start collapsed | The table starts closed. Only available when collapsing is on. The table is printed in full. | Off |
Navigation
What happens when a reader clicks a link and scrolls.
| Setting | What it does | Default |
|---|---|---|
| Scrolling: Smooth scrolling (off for visitors who prefer reduced motion) | Scrolls smoothly to the heading. | On |
| Scrolling: Highlight the section being read | Marks the entry of the section being read. | On |
| Scrolling: Add the section to the address bar (#section) when a link is clicked | Off keeps the address bar clean. | On |
| Scroll offset | Space in pixels kept above the heading after a click. Set it to the height of a sticky header. 0 to 400. | 80 px |
Tools
| Setting | What it does | Default |
|---|---|---|
| Shortcodes and data: Show AriTOC tables for [toc], [ez-toc], [lwptoc] and [joli-toc], and respect [no_toc] | AriTOC handles those shortcodes when no other active plugin does. [no_toc] turns the table off for that post. | Off |
| Shortcodes and data: Delete all AriTOC settings and per-page choices when the plugin is deleted | When you delete AriTOC from the Plugins screen, its settings, widget settings and the options saved in the Table of contents box are removed. | Off |
| Switch from another plugin: Plugin and Copy settings | Copies the settings of Easy Table of Contents, Table of Contents Plus or LuckyWP Table of Contents and replaces your current AriTOC settings. Lists only plugins whose settings are found. Turn on the shortcode option above to keep their shortcodes working. | None |
| Export and import: Download settings | Downloads your settings as a JSON file. | None |
| Export and import: Settings file and Import settings | Replaces your settings with those in an AriTOC settings file. | None |
| Reset: Reset to defaults… | Puts every setting back to its default after you confirm. The shortcode and delete-data options are kept, and per-page choices are not touched. | None |
Table of contents box in the editor
Shown on every public post type. See Show, hide or change the table on one page.
| Setting | What it does | Default |
|---|---|---|
| Mode | Use site settings (shown here) or Use site settings (not shown here), Show on this page (when it has enough headings), or Hide on this page. | Use site settings |
| Title | Title for this page's table. | Empty (site title) |
| Heading levels (leave all off for site settings) | Levels listed on this page. | All off |
| Also skip these headings | Separate with |. * is a wildcard. Added to the site-wide skip list. | Empty |
Table of Contents (AriTOC) block
In the block settings, under Content and Look and behavior.
| Setting | What it does | Default |
|---|---|---|
| Title | Title for this table. | Site title |
| Show the title | Site default, Yes or No. | Site default |
| Heading levels | Levels listed in this table. Use site default levels clears the choice. | Site default |
| Skip headings | Separate with |. * is a wildcard. Added to the site-wide skip list. | Empty |
| Minimum headings (0 = site default) | 0 to 20. | 0 |
| Theme | Site default or any theme from the Appearance tab. | Site default |
| Numbering | Site default or any numbering style from the Appearance tab. | Site default |
| Nest sub-headings | Site default, Yes or No. | Site default |
| Collapsible | Site default, Yes or No. | Site default |
| Start collapsed | Site default, Yes or No. | Site default |
AriTOC: Table of contents widget
The widget always shows its title, uses the full width and starts open.
| Setting | What it does | Default |
|---|---|---|
| Title: | Title for the widget's table. | Empty (site title) |
| Let visitors collapse it | Visitors can open and close the table. | Off |
Still stuck?
Our helpdesk answers on working days, Norwegian time. Include your WordPress version, PHP version, AriTOC version and the page address.