Pure CSS breaks Toggle View + Schema ignores [heading_levels] shortcode
-
Hello Easy Table of Contents Team,
I’m using your plugin and I’ve run into two separate issues that I hope you can help me with. I’m on WordPress 6.8.3 with a GeneratePress theme and the latest version of your plugin.
Issue 1: “Toggle View” functionality stops working with “Pure CSS” loading method.
When I navigate to Settings > Table of Contents > General and set the “TOC Loading Method” to “Pure CSS”, the toggle functionality (show/hide) for the table of contents stops working. The TOC is displayed correctly, but clicking the toggle button has no effect. If I switch the loading method back to JavaScript, the toggle works perfectly again.
Is this the expected behavior for the “Pure CSS” method, or is this a bug? My goal is to use the lightweight CSS method while retaining the toggle functionality.
Issue 2: The [heading_levels] shortcode attribute is ignored when “SiteNavigation Schema” is merged with Yoast Schema.
I use the Yoast SEO plugin and would like to integrate the schemas. In the Easy Table of Contents settings, under Settings > Table of Contents > SEO, I have enabled “SiteNavigation Schema” and also “Merge with Yoast Schema”.
When these two options are active, the shortcode [heading_levels=”2″] no longer works as expected. Instead of only showing H2 headings in the table of contents, it displays all heading levels (H2, H3, H4, etc.), as if the heading_levels attribute was completely ignored.
If I disable the “Merge with Yoast Schema” option, the shortcode [heading_levels=”2″] works correctly again and only shows the H2 headings. This leads me to believe there is a conflict with the schema merging process.
Could you please look into these two issues? Any help or a potential workaround would be greatly appreciated!
Thank you for your great work on this plugin.
Cheers
The topic ‘Pure CSS breaks Toggle View + Schema ignores [heading_levels] shortcode’ is closed to new replies.