How to Create a Table of Contents for Your Blog Post with the BLOG Module
A table of contents (TOC) makes your blog posts more professional and reader-friendly, especially for longer articles. The BLOG module by PrestaHero offers a simple way to add a TOC to your posts. Follow this step-by-step guide to set it up easily!
Steps to Create a Table of Contents
Step 1: Enable the Table of contents option
- Navigate to the sidebar menu of the BLOG module.
- Go to Global Settings > General.
- Look for the option "Allow creating a table of contents for the post" and enable it.
- In the field labeled "Title for table of contents section", enter a title for the TOC, such as "Table of Contents" or "Contents".
- Click Save to apply the changes.
Step 2: Choose and format headings for your TOC
To ensure the TOC is generated correctly, you’ll need to select and format the headings in your blog post:
Identify the key sections of your post
- Highlight the main sections you want included in the TOC, such as Introduction, Steps, or Conclusion.
- Avoid adding too many subheadings to keep the TOC clean and organized.
Format the headings according to their levels
H2: Use for main sections (e.g., "Step 1: Enable the Table of Contents Option").
H3: Use for subsections (e.g., "Find the 'General' Option").
H4: Use for detailed points if needed.
💡 Tip: Maintain a proper hierarchy in your headings. For example:
H2: Configuring Your Blog
- H3: Enabling the TOC
- H4: Customizing the TOC Title
Step 3: Save your post and preview
- Save your blog post once you’ve formatted the headings.
- Preview your post on the front end. Here’s what you’ll see:
- The TOC will appear at the top of your blog post.
- As readers scroll down, the TOC transforms into a floating button.
- Clicking the floating button brings the TOC back into view, allowing readers to navigate easily.
Tips for Choosing and Formatting Headings
- Use concise and clear titles for your headings.
- Focus on the most important sections of your post.
- Avoid overly long or unnecessary headings.
- Stick to a logical structure with no more than 3 heading levels for a cleaner TOC layout.
With the BLOG module, creating a table of contents for your blog posts is quick and easy. A well-organized TOC not only makes your posts look more professional but also enhances the reading experience for your audience. Try it out today!