AriTOC settings reference

Every option on the Settings → AriTOC screen, the editor box, the block and the widget, with what it does and its default.

  • Reference
  • AriTOC
  • 7 min read
  • Updated

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.

SettingWhat it doesDefault
Insert automatically onPost 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
PositionBefore 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 headingsPages 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.

SettingWhat it doesDefault
Heading levelsWhich levels, H1 to H6, are listed.H2, H3, H4
Skip headings by textOne per line. Matches the whole heading, any case. * is a wildcard: Related posts, FAQ*, *sponsored*.Empty
Skip headings by CSS classClasses 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 blockOne table lists the headings of every page of a paginated post and links across pages.On
Anchor formatReadable, 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 prefixText 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 sectionAdds 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.

SettingWhat it doesDefault
TitleThe 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
ThemeLight, Dark, Automatic (follows the visitor’s device), AriHub gradient, Minimal (no box), Inherit my theme’s colors or Custom colors.Light
ColorsShown 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
NumberingNo 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)
WidthFit to content, Full width or Medium (75%).Fit to content
AlignmentNormal, 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 parentNests 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 tableVisitors can open and close the table. Uses the browser’s own details element, so it works without JavaScript.On
Collapsing: Start collapsedThe table starts closed. Only available when collapsing is on. The table is printed in full.Off

What happens when a reader clicks a link and scrolls.

SettingWhat it doesDefault
Scrolling: Smooth scrolling (off for visitors who prefer reduced motion)Scrolls smoothly to the heading.On
Scrolling: Highlight the section being readMarks the entry of the section being read.On
Scrolling: Add the section to the address bar (#section) when a link is clickedOff keeps the address bar clean.On
Scroll offsetSpace in pixels kept above the heading after a click. Set it to the height of a sticky header. 0 to 400.80 px

Tools

SettingWhat it doesDefault
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 deletedWhen 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 settingsCopies 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 settingsDownloads your settings as a JSON file.None
Export and import: Settings file and Import settingsReplaces 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.

SettingWhat it doesDefault
ModeUse 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
TitleTitle 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 headingsSeparate 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.

SettingWhat it doesDefault
TitleTitle for this table.Site title
Show the titleSite default, Yes or No.Site default
Heading levelsLevels listed in this table. Use site default levels clears the choice.Site default
Skip headingsSeparate with |. * is a wildcard. Added to the site-wide skip list.Empty
Minimum headings (0 = site default)0 to 20.0
ThemeSite default or any theme from the Appearance tab.Site default
NumberingSite default or any numbering style from the Appearance tab.Site default
Nest sub-headingsSite default, Yes or No.Site default
CollapsibleSite default, Yes or No.Site default
Start collapsedSite default, Yes or No.Site default

AriTOC: Table of contents widget

The widget always shows its title, uses the full width and starts open.

SettingWhat it doesDefault
Title:Title for the widget's table.Empty (site title)
Let visitors collapse itVisitors 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.

Submit a ticketor email info@arihub.com