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.
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.
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.
-
This reply was modified 5 days, 8 hours ago by
Marc Tönsing.
-
This reply was modified 5 days, 8 hours ago by
Marc Tönsing.