Google Webmaster Tools: "There was an error parsing your JSON-LD." -
i have logged google webmaster tools , finding error in structured data relating new wordpress theme using:
json-ld: there error parsing json-ld.
the code referring is:
<meta property="og:site_name" content="townsville nerds - ph 0402 807 890" /> <script type='application/ld+json'> execonready(function({{"@context":"http:\/\/schema.org","@type":"website","url":"http:\/\/www.townsvillenerds.com\/","name":"townsville nerds - ph 0402 807 890"}}) </script>
note: in webmaster tools there red underscore under "e" in word "execonready".
your data block not contain valid json-ld (application/ld+json
).
instead of
<script type='application/ld+json'> execonready(function({{"@context":"http:\/\/schema.org","@type":"website","url":"http:\/\/www.townsvillenerds.com\/","name":"townsville nerds - ph 0402 807 890"}}) </script>
it should be
<script type='application/ld+json'> {"@context":"http:\/\/schema.org","@type":"website","url":"http:\/\/www.townsvillenerds.com\/","name":"townsville nerds - ph 0402 807 890"} </script>
i guess don’t need escape /
, be:
<script type="application/ld+json"> { "@context": "http://schema.org", "@type": "website", "url": "http://www.townsvillenerds.com/", "name": "townsville nerds - ph 0402 807 890" } </script>
Comments
Post a Comment