Hi,
Thank you for reaching out to us. Kindly refer to this document and follow all the steps. If you are still facing any issues, please let us know.
Thread Starter
ruthkl
(@ruthkl)
Hi there, many thanks for your kind reply. As I am not using the pro version, is there a filter that I can use to examine the headings and exclude some of them?
There is a filter called ez_toc_exclude_by_selector in Easy Table of Contents. You can use it to achieve this. Just search for it in the code
Thread Starter
ruthkl
(@ruthkl)
Hi, thanks Sanjeev for your reply.
I had already the following code in place and it worked once, but not anymore. Has anyone any clue to what is going on? I am not using the Pro version. Was this functionality removed from the free version?
/*TOC: Exclude Recent Posts Slider headings*/
add_filter(
'ez_toc_exclude_by_selector',
function( $selectors ) {
$selectors['wppsac-post-title'] = '.wppsac-post-title';
return $selectors;
}
);
Many thanks for any help!
-
This reply was modified 2 months ago by
ruthkl.
This hook is still in use and has not been removed from the free version. A new hook has also been added with the proper prefix: eztoc_exclude_by_selector. Please try using this one as well.
Your code looks correct and should work as expected. There might be something else causing the issue, which we may need to debug further, but the code itself seems fine.
Thread Starter
ruthkl
(@ruthkl)
Hi there, thank you for your answer. I debuged into the code of EZ TOC, and I found that the function inExcludedNode inside of the class class-eztoc-post is returning false instead of true for those headings that DO EXIST in the array of excluded nodes! It is because of the free version of EZ TOC.