I just experienced this issue as well updated Accordions to Version 2.2.32 on 4/25.
Getting this problem across multiple sites as well. It looks like the structure is printing incorrectly…
Currently printing:
<script>jQuery(document).ready(function($){accordions_active_index_3224=[0]})</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Question","acceptedAnswer":{"@type":"Answer","text":"Answer."}},]}</script> <script>
What this should look like:
<script>jQuery(document).ready(function($){accordions_active_index_3224=[0]})</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Question","acceptedAnswer":{"@type":"Answer","text":"Answer."}},]}</script> <script>
Still getting same error with 2.2.32. Seems like it’s only on the first accordion.
In Edit Accordion > Settings > General > Enable Schema … set this to NO and it’s fixed.
Not sure what “Schema” refers to… anyone?
Ronr1999: https://www.searchenginejournal.com/technical-seo/schema/
It’s data (sometimes inline) that allows Google to better categorize information. So, for example, the accordion would be an FAQ, and the title would be a Question, and the content would be an Answer. This is what feeds Google’s rich snippets on the search engine results page.
In my case I want Schema enabled, so I’d rather this be fixed than disable it.
-
This reply was modified 2 years, 6 months ago by
the9mm.
Ah, thanks for the explanation!