Excluse specific headings (not just all h3)
-
Love the plugin but one stumbling block: I have a related posts plugin that inserts it’s content at the end of the .entry-content div with a h3 heading. Because it is in the same container DIV I can’t use the content=selector parameter to exclude it. And it uses an h3 tag, which is one of the header levels I need to include in my TOC.
It happens to be the last h3, so I could hide the TOC entry using a :last-child selector, but that seems messy and could break if the plugin changes what it does or I turn it off. I could end up hiding TOC entries I need to be visible.
The Toc doesn’t include any classes that are useful on the li entries it generates. Is it possible to add a class for the h3 contents (the same as used in the generated link)? Any class that let me select by the specific h3 (in this case, with contents “Related”) would allow me to hide the li entry for it in the TOC using CSS cleanly.
- The topic ‘Excluse specific headings (not just all h3)’ is closed to new replies.