• Resolved evamusby

    (@evamusby)


    Hello, I would like to use the general setting “Auto Insert” but then prevent a table of contents from appearing on some of my posts.

    Can this be done, and if so, can you give me the instructions for both Classic and Gutenberg?

    With an old plugin I would put in [no_toc] and I’d quite like to be able to use search and replace to change it all to whatever it is with your plugin.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author LuckyWP

    (@theluckywp)

    Hello!

    On edit post screen has metabox “Table of Contents” (available in gutenberg and classic editor). In metabox click button “Disable ToC”.

    Thread Starter evamusby

    (@evamusby)

    Thank you for your prompt answer.
    I can’t find it ! I can see an icon on the editing toolbar (classic)showing the table of contents and in Gutenberg I can see the table of contents too.
    Then I can click on the pencil to customise the table of contents, and there are 3 tabs (General, Appearance, Misc) but nowhere do I see “Disable”.

    Can you direct my eyes please?
    Thank you ??

    Plugin Author LuckyWP

    (@theluckywp)

    Make sure that the post type item is checked in the settings: “Settings / Misc /
    Show Panel “Table of Contents” in Post Types”. Screenshot: https://ps.w.org/luckywp-table-of-contents/assets/screenshot-11.png?rev=2133515

    Thread Starter evamusby

    (@evamusby)

    OK thank you, I have done that now, for pages and posts.
    But… oh dear, I still cannot see any option to disable the TOC in any metabox.

    In case I’m not looking in the right place, should I find it on the General, Appearance or Misc tabs? At the top? The bottom?
    (For now, I’ve disabled the TOC in the general Auto-Insert setting but obviously I have experimented while having it enabled).

    Would it be simpler to tell me what the shortcode is, and I could replace all my [no_toc] codes from my previous plugin, to whatever the one for this one is?

    I do hope you can help me sort this as EVERYTHING ELSE in this plugin is just wonderful. I really like how extremely customisable it is.

    Thread Starter evamusby

    (@evamusby)

    In case anyone else has the same query and blindness, I found the Disable option by chance, in right hand column of the editor, when the tab in that column is on Document, not Block.

    Plugin Author LuckyWP

    (@theluckywp)

    Hello, @evamusby !

    I’m glad what you resolved problem ??

    PS Sorry, i’m missed previous you message.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shortcode to disable the table of contents in a post?’ is closed to new replies.