Exclude Headings in Related Posts Block
-
Hi there Dev. Thanks for your great little TOC tool. I need your quick assistance to exclude headings from a Gutenberg Block of Related Posts.
My theme is from Genesis (a reasonably large theme provider) and comes with a Gutenberg Block called Mai Grid that is used to show Related Posts. The Block pulls in the Related Post Headings and displays them as <H3>. Easy Table of Contents then picks these headings up and shows them in the TOC. This behavior should not occur.
With your existing customizations I can only choose to exclude all H3 headings and this would defeat the purpose of the TOC. So I ask for what I hope is a small update.
Could you please exclude the “Mai Grid” Block class from displaying in the TOC? This should resolve the issue for me and other Genesis users.
Below is the page inspection of the Related Posts block which slows the class name and the H3 headings that are pulled in.
Alternatively, you could add functionality to the settings so that users can specify a class to be excluded. This would solve the greater issue, as I have seen other related reports to this problem for other plugins.
Thanks for taking the time to do what you do.
Greb
- The topic ‘Exclude Headings in Related Posts Block’ is closed to new replies.