• Resolved devopa

    (@digitalkiller)


    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)
  • Plugin Author Magazine3

    (@magazine3)

    Hi, Thank you for reaching us, and sorry for the delayed response. The above setup that you have done is correct. It might be occurring due to conflict. If possible, Kindly check once by deactivating the active plugins one by one on your site for debugging purposes of the issue and let us know back the conflicting ones, So that we will analyze the scenario and assist you accordingly in fixing the issue.

    Plugin Author Magazine3

    (@magazine3)

    Hi, We haven’t heard back from you. Can you please let us know if have you checked? If not, Kindly check once and help us to debug the issue, So that we will analyze the issue and assist you to fix it ASAP!

    Plugin Author Magazine3

    (@magazine3)

    @digitalkiller As we haven’t received a response, I’ll mark this as resolved due to inactivity. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Does exclude by selector not work with shortcodes?’ is closed to new replies.