AriTOC · Table of contents for WordPress

A table of contents readers actually use.

AriTOC reads your headings, gives each one a clean anchor and highlights the section being read. It works on block themes and paginated posts, loads nothing on pages without a table, and needs no jQuery.

v2.0.2WordPress 6.3+PHP 7.4+GPLv2 or later

0scripts on pages without a table, and no jQuery
7colour styles, from light to inherit your theme
4numbering styles: nested, roman, letters, bullets
1table across every page of a paginated post
What it does

Made for real content

Long articles, guides in many languages and posts split over several pages all get a table that works.

Place it your way

Automatically on posts, pages and custom post types, before or after the first heading, after the first paragraph, at the top or the bottom. Or use the block, the [aritoc] shortcode, the widget or aritoc().

Block with live preview

The Table of Contents block shows your headings in the editor, and goes into block theme templates and sidebars from the Site Editor.

Paginated posts

Posts split with the Page Break block get one table with the headings of every page, linking across pages.

Any language

Readable anchors keep the letters of every script, so Arabic, Bengali or Japanese headings get meaningful links. Accented Latin letters are simplified: Første becomes #forste. Right-to-left languages are supported.

Your design

Light, dark, automatic, AriHub gradient, minimal, inherit-your-theme or custom colours. Nested, roman, letter or bullet numbering. Floating, centred or in two columns.

Per-page control

The editor sidebar shows or hides the table on one page and changes its title, heading levels and exclusions there.

Skip what does not belong

Skip headings by text (with * wildcards), by CSS class or with no-toc on one heading. Give a heading a shorter label in the table.

Safe anchors

Existing anchors are kept, and new ones never clash with other ids in the content or with common theme ids such as #comments or #main.

Works with Rank Math

Rank Math's “Use a table of contents” check passes with AriTOC.

Fast and accessible

Light on the page, easy for everyone

One small stylesheet and one small deferred script, only on pages that show a table.

For every reader

Works without JavaScriptKeyboard and screen readersLabelled navigation landmarkaria-current on the section being readFocus moves to the heading

Behaviour

Smooth scroll that respects reduced motionOffset for sticky headersOptional clean address barOptional “#” link per headingPrints in full
Switching

Move from another plugin in one click

Coming from Easy Table of Contents, Table of Contents Plus or LuckyWP Table of Contents? Settings → AriTOC → Tools copies their settings and keeps their shortcodes working, so you edit no posts.

[toc][ez-toc][lwptoc][no_toc]
Shortcode

Every option, in one place

[aritoc title="In this article" levels="2,3"
  exclude="FAQ|Related*" numbering="roman"
  theme="dark" collapsible="yes"]

Anything you leave out uses the settings page. Developers get filters, aritoc_get_headings() and CSS custom properties such as --aritoc-bg.

AriTOC Pro

For long reads

A separate add-on for the free plugin. The free plugin stays fully working without it.

Floating table

Follows readers after they scroll past it: docked beside the article on wide screens, a Contents button on phones and tablets.

Reading progress bar

At the top or bottom of the screen, in your colour and thickness.

Reading time

“5 min read” in the table header, with an adjustable reading speed. Counts Chinese, Japanese and Korean text correctly.

“Show more” and folding

Show only the first entries of a long table, and fold sub-headings. The section being read always opens.

Design controls

Active-section colour, corner radius, shadow, font size and font.

Priority support

Questions answered first, by the people who build it.

Coming soon on WordPress.org

AriTOC will be free to install straight from your WordPress dashboard under Plugins → Add New. AriTOC Pro will be sold here on arihub.com. Leave your email and we will tell you the day each is live.

Questions

Frequently asked

Why does a page show no table?

It needs at least the minimum number of headings (3 by default) at the chosen levels, the post type must be ticked under “Insert automatically on” (or use the block or shortcode), and the page must not be set to “Hide on this page” in the Table of contents box in the editor. Get started with AriTOC

How do I skip one heading?

Select the heading in the block editor, open Advanced and add the CSS class no-toc. You can also skip headings by text or by CSS class site-wide. Choose which headings appear

My sticky header covers the heading after a click

Set “Scroll offset” under Settings → AriTOC → Behavior to the height of your header. The default is 80 px.

Does it work with my page builder?

When the builder prints content through WordPress's the_content filter, the automatic table works. Otherwise add the [aritoc] shortcode where you want the table. Place the table yourself

Does it work with my theme?

Yes, with block themes and classic themes. In a block theme you can also put the Table of Contents (AriTOC) block in a template or sidebar from the Site Editor; in a classic theme, use the AriTOC widget in a sidebar.

Will it slow my site down?

AriTOC loads one stylesheet and one deferred script, without jQuery, and only on single posts and pages where it expects to show a table. The table is built on the server from your headings, with no requests to outside services.

What does AriTOC store?

Its settings in one WordPress option, aritoc_settings, and, only for pages where you use the Table of contents box, up to four post meta fields. It sets no cookies. Stored data

What happens to my settings if I delete the plugin?

They are kept, unless you tick “Delete all AriTOC settings and per-page choices when the plugin is deleted” under Settings → AriTOC → Tools before you delete it.

Does it work on multisite?

Yes. Each site in the network has its own AriTOC settings; there are no network-wide settings.

Does it work with my language?

Readable anchors keep the letters of every script, so headings in Arabic, Bengali or Japanese get meaningful links. Accented Latin letters are simplified, so Første becomes #forste. You can choose Latin-only or numbered anchors instead. The admin screens are in English and ready for translation.