How to add table of content for H1 and H2 in all of blog post through x-theme's table of content

Like this one: https://learnmechanical.com/forging-types-operations-defects/

Hey Saswata,

Here’s how I understand your problem right now. You want to link a Table of Content item to a section with h1 or h2 heading. If this is the case, you would need to divide your sections like this:

The output of that setup is this:

It doesn’t look good in terms of design so I’d recommend you use the block TOC Type.

For more details about TOC, please see the documentation at https://theme.co/apex/forum/t/shortcodes-toc/180

If I’m not understanding the problem correctly, please provide more details.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.