Does exclude by selector not work with shortcodes?
-
I tried to remove a certain class (of an h2 element) from being added to the table of contents but I cannot get it to work.
This is the code I tried:
add_filter(
'ez_toc_exclude_by_selector',
function( $selectors ) {
$selectors['item-titles'] = '.item-title';
return $selectors;
}
);I insert the table of contents using the shortcode
[ez-toc]I’m not sure if that has something to do with it or what would be the correct way to do this.Thanks in advance for your help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Does exclude by selector not work with shortcodes?’ is closed to new replies.