/ Documentation /General/How to Exclude A Heading from Table of Contents?

How to Exclude A Heading from Table of Contents?

You might have a requirement in certain cases where you need to hide the heading from the table of contents. We have made it possible in our Spectra’s Table of Contents block to exclude the unnecessary headings from the table.

Let’s see a couple of cases to get a clearer idea on how you can achieve the same on your end –

Case: Hide Headings from the Single Post Page

A Single Post Page having related posts under the post content could list its Headings under the Table of Contents.

Solution: Now, to resolve this case, Spectra provides a simple way out, we have provided a CSS class which is – uagb-toc-hide-heading. There’s no need to be afraid there’s no custom code required.

We just need to add the above-provided custom CSS to the block which is displaying the posts. This class could be added to a particular Heading block/Advanced Heading block under Advanced settings > Additional CSS Class(es).

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

%title %title
On this page
Build Ultra High Performance
Websites, Without Coding

Whether you are a beginner, marketer, or professional, Spectra has the tools and resources you can rely on to succeed

Get Notified When Available

Note - You can purchase the Essential Toolkit now and easily upgrade to the Business Toolkit once it becomes available.

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Get your hands on Spectra Pro

Enter your name and email address to get access to Spectra Pro.