• Resolved vitorhugo

    (@vitorhugo)


    Hi, just a quick doubt/question.

    The plugin had added some inline css:
    <style id="simpletoc-toc-style-inline-css">.simpletoc.has-simpletoc-box-style{padding:1em 1em .5em}.simpletoc.has-simpletoc-box-style .simpletoc-title{font-size:1.6rem;margin:0}.simpletoc>summary{cursor:pointer}
    /*# sourceURL=https://site.com/wp-content/plugins/simpletoc/build/style-index.css */</style>

    For what I can tell, it doesn’t do much in the front-end. There is a way to remove it? It appeared even with no global settings.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marc Tönsing

    (@marcdk)

    Hi! Just disable the box-style in the block options of SimpleTOC. SimpleTOC does not add CSS by default. So this had been switched on in the options.

    Thread Starter vitorhugo

    (@vitorhugo)

    Hi, thanks for the reply.

    Well, something isn’t working properly 🤔 . None options were switched on and the css still seems to be applied (well, only the automatic update option is on).

    Image: https://imgur.com/a/WzTqI5A

    <style id="simpletoc-toc-style-inline-css">.simpletoc.has-simpletoc-box-style{padding:1em 1em .5em}.simpletoc.has-simpletoc-box-style .simpletoc-title{font-size:1.6rem;margin:0}.simpletoc>summary{cursor:pointer}
    /*# sourceURL=https://site.com/wp-content/plugins/simpletoc/build/style-index.css */</style>

    And in my end, I purged all the possible cache and inspected the source code in differents browsers as well.

    Plugin Author Marc Tönsing

    (@marcdk)

    So the reported behavior is confirmed. WordPress loads the stylesheet registered via block.json whenever SimpleTOC is present and inlines this small file. The box rules are present but inactive because their required class is absent.

    The stylesheet is only 384 bytes, follows Gutenberg’s standard block.json registration, and loads only when a SimpleTOC block exists. Disabled features remain inactive because their classes are absent. Conditional loading would require considerably more custom logic for negligible benefit.

    Maybe this will be fixed in a future release as a minor fix. Thank you for reporting.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.