I need to see the url to understand what goes wrong. I tested it with block themes likes twenty-twenty-two.
Okay, it seems like the JS and CSS for the accordion is not enqueued on your website. Which theme and WordPress version do you use? Can you please clear all caches and deactivate all plugins please?
The styles and scripts should at least be enqueued. And they are missing in the editor, too. That should not happen.
Here is a WP 6.1 test site with SimpleTOC and the accordion https://classyshake.s2-tastewp.com/2020/08/05/hello-world/ to give a hint what it should look like
Do you have a staged environment to please deactivate all other plugins and disable and clear all caches, please? And then change the theme temporarily to the standard themes. I need to know if it is a problem with your caching, another plugin or your theme. =) Because it works on a standard WP 6.1 with a standard theme.
There is no staging area unless i create one
You can use TasteWP for dummy test site: Just configure it like your live site. I did the same above.
That is a lot of work, i can clone the existing one as staging, how do i send you the login details?
Use marc.toensing _ a t _ gmail com
And please deactivate all plugins and clear all caches on the cloned instance. Thank you
The theme has plugins it uses, like 2 or there about
I understand the problem. It only works with twenty-twenty-two right now. I do not understand why. Maybe something the theme has to do. I will come up with a solution in the next few days.
That was a fast solution… Thanks