Support » Plugin: Yoast SEO » JSON+LD outputs twice!

  • Resolved BlueGlass Interactive


    New JSON+LD feture outputs twice, one time in <script> as expected, and second time right after the body tag!

    Please help 🙂 looks ugly on live site

Viewing 4 replies - 1 through 4 (of 4 total)
  • BlueGlass Interactive


    Correction, not twice, once, but without <script>

    Issue comes from here: echo "<script type='application/ld+json' class='", esc_attr( $class ), "'>", self::format_json_encode( $output ), '</script>', "\n";

    Removing the class, fixes the issue…

    What could it be?

    BlueGlass Interactive


    classes “yoast-schema-graph yoast-schema-graph–main” in script, brake it and make it output the json without script tag… If I remove the “yoast” from class names, json outputs correctly… :/

    Plugin Author Joost de Valk


    That’s probably because another plugin or code is trying to remove stuff with yoast in it from your frontend, a clean up plugin of some sorts that’s acting to aggressively?

    Plugin Support amboutwe


    This thread has been marked as resolved due to lack of activity.

    You’re always welcome to re-open this topic. Please read this post before opening a new request.

    Thanks for understanding!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.