Ad space

In-article ad

Ad space
eyJ2IjoxLCJiIjoiODk4NzUxMjU0MTU2NDk5MDUwIiwidyI6ImRlbW8iLCJ0IjoiMSJ9.JNwytzxn68dvLH1Z_gmjrF_npbIlkG_5lKkKaJtx68sNq6xmnGUZVOKYtYqT99no2gj0XcjwsZiev9GzFJK0OA

Head extras

Auto Table of Contents in Centum: Turn It Off or Show It Collapsed

Centum builds a table of contents from your post headings (h2 and h3) as soon as a post has two or more. No code and no plugin. The table appears above the post body with links that jump to each section. It improves reading and helps search engines understand your structure.

Live example

Open the product specs box post on the demo blog and you will see the table of contents built automatically above the post from its headings.

Option 1: turn the table off

In the Blogger dashboard open Layout, then the ⚙ Theme settings gadget. Add a link named tocBox with the value 0 and save. Centum stops showing the table on every post right away and loads no extra code.

Option 2: show the table collapsed

If you want the table to exist but take no space until the reader asks for it, add a link named tocCollapsed with the value 1 and save. The table shows collapsed under a "Contents" title and opens with one tap. It causes no layout shift.

Full practical example: to show the table collapsed on your blog, the two settings become tocBox = 1 (show) and tocCollapsed = 1 (collapse). To go back to the default: tocCollapsed = 0.

Defaults

Out of the box the table is visible (tocBox = 1) and open (tocCollapsed = 0). Both settings work from the Blogger dashboard without touching any file, and neither changes page speed.

Copy-and-paste example

To show the table collapsed, add these two links to the Theme settings gadget (link title on the left, value on the right):

tocBox = 1
tocCollapsed = 1

To turn the table off completely, use tocBox = 0.

About the author

Ad space