Can’t add JSON snippet
-
I’m trying to add Schema code to a site. The simplified code looks like this:
<script type="application/ld+json">{"@context": "https://schema.org",... lots of info here ... }</script>
When I try to add using this plugin using HTML snippet, it strips out the
<script type="application/ld+json">
and</script>
. A JS snippet also doesn’t seem to work since it’s not JavaScript, it’s JSON.
I’d hoped a “universal snippet” might work, but it doesn’t work either. The JSON just is added to the page (as text) instead of as script or code.
Does anyone know if there is a way to add a JSON script to a page using this plugin? I’m hoping I don’t need another plugin.
Thanks in advance.The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.