• Resolved Philipp Stracker

    (@strackerphil-1)


    Amazing plugin, thanks!

    Just a minor thing that would make it even better for us to use:

    Ability to edit the TOC title, instead of the hard-coded “Table of Contents”.
    We usually customize the title to match the blog posts’ context; e.g.

    – We’ll look at the following steps
    – This review covers
    – How we handle SEO

    (all followed by an ul-list with anchor links)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marc Toensing

    (@marcdk)

    As written in the faq and mentioned in the options of SimpleTOC you can remove the heading and add your own. Just group a new heading with SimpleTOC. Everything else would be redundant.

    Thread Starter Philipp Stracker

    (@strackerphil-1)

    Thanks for your feedback @marcdk 👍

    I’ve tested that workflow and find it rather complex to adjust the title; every author needs to perform multiple new steps in every blog post

    1. Hiding the default TOC title
    2. Adding a new H2-block above the TOC
    3. Setting the CSS class of the new H2 block to “simpletoc-hidden”

    We have multiple authors of varying WordPress skill-level, so I want to keep the process as straightforward as possible.

    → I’ve gone ahead and created a pull-request for your plugin that streamlines this process, as the TOC title can be customized via the block properties.

    https://github.com/mtoensing/simpletoc/pull/19

    I think this change is a great addition to your plugin without adding any complexity. The title is escaped, has the correct header-level (h2), and always defaults to “Table of Contents” when left empty.

    Plugin Author Marc Toensing

    (@marcdk)

    Wow and omg. Great! This is the most beautiful PR I have ever received. Even with an animated gif. I will look into the pr asap and merge it. Looks great at first sight and is a good solution for everyone!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customizable Title?’ is closed to new replies.