Reading time and table of contents
plusUpdated
Two blocks for your posts, both on Plus:
- Reading time shows "6 min read", counted from the post's own words. Its setting is the reading speed (230 words a minute suits most adult readers).
- Table of contents lists the post's headings as links, so a reader can jump straight to the part they came for.
Add either one from Articles & SEO in the app with Add to theme, then save in the theme editor.
How the table of contents is built
It reads the H2 headings in your post, and the H3s under them if you choose "Main and sub-headings". Headings without an id are given one so the links have somewhere to go. You can make the list collapsible and keep it on screen while the reader scrolls (best when the block sits in a sidebar column).
A post with fewer than two headings shows no table of contents, rather than a list of one.
Tip
If your theme puts the post body somewhere unusual and the list stays empty, set Post body selector in the block to the CSS selector of the element that holds the article text.