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 UAG’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, UAG 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).