How to count divs but don’t count divs with a class
-
Hi,
I’d need some help with paragraph counting.
What I need to do is count the following tags as paragraphs: p, figure, img, div…
But I don’t want to count divs that have the class ‘code-block’ or other class I define. Please note, that I’d like to keep the wrapping of the blocks with the divs and the numbered code-block classes.
In the first section, where I set Count “from top” and set the tags… and then there is the ‘and “do not contain” : ‘… I tried to set up fill ‘code-block’… But this “do not contain” setting only seems to check for text inside the tag, not for attributes.
I understand, that there is also a setting that allows to not count inside tags with certain text or attributes like classes, but as far as I understand and tested, this only disables the counting inside the tag, while still count’s the tag itself.
Could you please give some advice how to only ignore = not count divs with a class and keep counting the other divs and don’t count inside divs?
Thanks for the help and the plugin!
Bests
- The topic ‘How to count divs but don’t count divs with a class’ is closed to new replies.