Support » Plugin: Table of Contents Plus » Increase the number of headings on the page

  • phantasmix

    (@phantasmix)


    Can you please increase the number of headings present on the page before the TOC is shown?

    Right now the maximum is 10, and that’s not enough for some of our pages. 15 or even 20 would be great. I increased it for now, but would be nice not to have to fix it when the plugin is updated.

    Thanks in advance!

    https://wordpress.org/plugins/table-of-contents-plus/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Mike

    (@conjur3r)

    What did you increase it to?

    To me, anything higher than 10 seems unusually high in terms of benefit. Wikipedia themselves have it set to 4.

    Thread Starter phantasmix

    (@phantasmix)

    I set it to 20. The TOC isn’t suitable for all content in my case. Some pages are very short, in others the switch tabs have headings and I don’t need TOC for pages with the switch tabs.

    Yes, I suppose I could change the switch tab headings to a class instead of H4 but would mean hacking another plugin 🙂 Plus, it’s easier to maintain fewer styles.

    Plugin Author Mike

    (@conjur3r)

    Have you played around with the exclude options (Settinsg > TOC+, advanced)? You can exclude headings that match the criteria you put in, you can even exclude whole sections of your site, eg: no TOC for any pages starting with /faq/aaa

    Will any of the above help?

    Thread Starter phantasmix

    (@phantasmix)

    Yes, that helps, thanks.

    Thread Starter phantasmix

    (@phantasmix)

    It doesn’t save the inclusions for me. Not sure if it’s just on my installation or a bug?

    Plugin Author Mike

    (@conjur3r)

    What have you tried saving?

    Exclude pattern?
    Restrict path?

    What did you enter?

    Thread Starter phantasmix

    (@phantasmix)

    The path exclusion doesn’t work. My installation is at IP/~username/

    Would like to exclude the IP/~username/calendar page. Tried both /calendar, and calendar without the slash, but the TOC shows anyway.

    Plugin Author Mike

    (@conjur3r)

    Try: /calendar/

    and clear any caches you may have.

    How do the URLs look to your public? Like this?

    http://domain/calendar/a/b/c/ ??

    Thread Starter phantasmix

    (@phantasmix)

    It saved the path as /calendar/ but hid the TOC from every page.

    Plugin Author Mike

    (@conjur3r)

    That’s what it’s supposed to do for the restrict path option. It will now only display the TOC for pages that start with /calendar/ and will prevent it from appearing on all others. Maybe we got confused earlier… and perhaps adding more headings to the drop down ain’t such a bad thing.

    Thread Starter phantasmix

    (@phantasmix)

    Sorry I wasn’t clear – it stopped showing TOC *everywhere*, including on the calendar page. Even with the minimum number of headings set to 4 (Calendar page has 8 headings).

    And I did misunderstand: thought restrict path would NOT show TOC on those pages. I think I got it now.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Increase the number of headings on the page’ is closed to new replies.