• Resolved BlueGlass

    (@blueglassinteractive)


    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)
  • Thread Starter BlueGlass

    (@blueglassinteractive)

    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?

    Thread Starter BlueGlass

    (@blueglassinteractive)

    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 Contributor Joost de Valk

    (@joostdevalk)

    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

    (@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)
  • The topic ‘JSON+LD outputs twice!’ is closed to new replies.