Support » Plugin: SimpleTOC - Table of Contents Block » Can this be used as a block-based widget

  • Resolved speardigital

    (@speardigital)


    Hi, I love the simplicity of this plugin, thanks. However, I need to use this in a sidebar so have tried inserting it into the new block widget area in my theme. This picks up the headings and creates the table of contents on each page, however, the headings in the content don’t get updated with the necessary IDs so the jump links don’t work. Am I trying to do something that the plugin doesn’t currently support or can I make a simple mod for this use case?

    • This topic was modified 7 months, 3 weeks ago by speardigital.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Marc Tönsing

    (@marcdk)

    Please try the option “use absolute urls” in the settings part of the block. Does this work?

    Thread Starter speardigital

    (@speardigital)

    Hi Marc,

    No change unfortunately. When placed in the widget sidebar area the block correctly displays a table of contents on each page with headings but the headings in the content don’t get the necessary IDs so the anchor links don’t have anywhere to go. If I place the block directly in the page content it works fine.

    Plugin Author Marc Tönsing

    (@marcdk)

    I see. I will look into this but there is no easy solution to this I am afraid.

    Thread Starter speardigital

    (@speardigital)

    Okay, thanks Marc

    Plugin Author Marc Tönsing

    (@marcdk)

    You can always add an additional block to the post and hide it via CSS. But that is a work-around.

    Plugin Author Marc Tönsing

    (@marcdk)

    I think this can be closed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.