• Resolved axwellion

    (@axwellion)


    Is it possible to jump back to the TOC itself from the middle of the page? I would like to add a “return to TOC” to the code but I can’t find any anchors for the TOC to jump to.
    Thank you.

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

    (@shazahm1hotmailcom)

    You can add a link anywhere in your page to the TOC.

    <a href="#ez-toc-container">Back to TOC</a>

    This is assuming you are inerting the TOC into the page content and not using the sidebar widget.

    Hope this helps!

    Thread Starter axwellion

    (@axwellion)

    Hi Shaz. I added that exact line of code in text mode and after a page refresh the entire TOC was missing. I deleted that line of text and then the TOC returned.
    Do you have any suggestion what I might have done wrong?

    Here is the page with that line of code inserated:
    https://www.cryptocurrencycomplete.com/learn/security/protecting-your-cryptocurrency/#ez-toc-container
    Thanks

    Steven

    (@shazahm1hotmailcom)

    Oh, yeah, I forgot. The code checks for that id and will not embed the TOC if it finds another one. This is to prevent the TOC from rendering more than once. I’ll have to add a back to TOC feature.

    Thread Starter axwellion

    (@axwellion)

    Thank you. For now, since my TOC is at the top of the page, I just jump back to the page itself with /#. It works but will look nicer when the jump can be more accurate.
    Thanks again

    Hi Steven,

    Any idea of when this “back to the TOC” feature can be implemented?

    Cheers,
    mats @ madicko

    Steven

    (@shazahm1hotmailcom)

    @madicko
    Sorry, no eta.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Jump back to TOC from mid-page’ is closed to new replies.