View Single Post
  #1  
Old 01-07-2019, 02:50 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,964
 

Default JSON-LD <script type="application/ld+json"> Question

One of my static pages is ranking really well and we receive a large amount of traffic from this page. Recently we dropped from #2 to #5 so I'm trying to add JSON-LD structured data to this static page.

My issue is that while the structured data validates fine with the Google Structured Data Testing Tool, the testing tool can not not find it on the page. I moved it from the <body> to the <head> section but it's still not working and then I saw when using View Source that the <script type="application/ld+json"> changed to <script type="text/javascript"> so maybe that's why Google is not seeing it.

Does anyone know how to stop <script type="application/ld+json"> from changing to <script type="text/javascript"> when x-cart publishes a static page?

.tpl code
Code:
{literal} <script type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "Article", .blah .blah .blah } </script> {/literal}
HTML source

Code:
<script type="text/javascript">{"@context":"http://schema.org","@type":"Article","headline": </head>
Thanks! Paul
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote