• Resolved thomasmi87

    (@thomasmi87)


    Hi,

    We are using easyTOC on a number of sites and love it!

    Howwver, we have implemented it in our own post-template using a shortcode and here the TOC′s are not being highlighed as you scroll down the page.

    Is there anyway to add this functionality? Maby someone has some JS code that needs to be inserted/used?

    Or other ideas?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Steven

    (@shazahm1hotmailcom)

    If you wrap the TOC is a div with class ez-toc-widget-container, that might make it work.

    I hope this helps!

    Thread Starter thomasmi87

    (@thomasmi87)

    Hej Steven,

    Thank you for your reply!

    It did not seem to work. However i made i work using boostrap bootstrap spyscroll and adding “nav” class to the ul containing the toc list.

    However, i needed to to it by editing the class.post.php, as i could not find a filter to edit:

    $html = '<ul class="ez-toc-list ez-toc-list-level-1">' . $html . '</ul>';

    Could this possibly be added in an update, so updates dont overwrite the extra class?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Highlight TOC titles when used as shortcode’ is closed to new replies.